Reputation: 1526
I'm using Core Data to save my dynamic UITableView (not controller, AFAIK you can't have a static table view in a UITableView). I was wondering if it was possible to add a separate section to my table view with just one static cell inside? I tried looking but I couldn't find anything so far! I just need a point in the right direction.
Thanks!
Upvotes: 0
Views: 746
Reputation: 25740
As Scott says, you have to stay with a dynamic table view.
However, you can have multiple UITableViewCell
's (with different reuse identifiers) in your table, so just create two different cells and return the appropriate one, based on the indexPath provided in cellForRowAtIndexPath:
.
Upvotes: 3
Reputation: 16946
Unfortunately, a table is either completely static or completely dynamic. If part of your table view needs to be dynamic, you'll have to make the whole table view dynamic and implement the delegate methods for the static cells as well.
Upvotes: 1