There are probably 2 reasons.
Firstly, you are not using the UITableViewController in the storyboard, i.e. you have a UITableView inside a UIViewController. I am sure you should use the UITableViewController if you want to use static cells.
Secondly, you created the UITableView instance correctly, but you have implemented the programmatic management functions in the UITableView delegate. Specifically, these features include at least:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
If this is not the case, I think you need to provide more information.
source share