UITableViewController doesn't show content with static cell
2013-01-20 | Hits
I’ve been struggle for some time just because of the tableView doesn’t show any content to me.
The situation is, I’m trying to create a tableView with some sections and static cells, and it served as a rootViewController of a navigationController.
Finally I solved the problem by commenting out the following line in tableViewController.m
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { #warning Potentially incomplete method implementation. // Return the number of sections. return0; }
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { #warning Incomplete method implementation. // Return the number of rows in the section. return0; }