Implementation of generic UITableViewDataSource that can be used to reduce the amount of code in UIViewControllers.