Updated UITableViewDataSource function implementation with the upgrades of Xcode 6 beta 7.