Invalid redeclaration of UITableViewDataSource method? You have this function twice in your class. Search for it and erase one of them.