I am using storyboard. Although the static table view appears inside the storyboard, after running on simulator it doesn't appear. To be more accurate only the section header appears. If I change the style to dynamic, the table view appears!
There probably 2 possible causes.
First, you're not using a UITableViewController in the storyboard, i.e. you have a UITableView inside of a UIViewController. I'm pretty sure you must use a UITableViewController if you want to use static cells.
Second, you have correctly instantiated the UITableView but you've implemented the programmatic control functions in the UITableView's delegate. To be specific these functions include at least:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
If neither is the case then I think you need to provide more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With