I have an app that adds Points of Interest (POIs) to a managedObjectContext. On the AddPOITableViewController, I have a segue that goes to a CategoryTableViewController and the CategoryTVC displays the existing categories in the managedObjectContext.
The navigation is as follows:
POIList-->AddPOIViewController-->CategoryTableViewController-->AddCategoryVC
Problem:
As I don't have any categories in the managedObjectContext, there are none displayed on my CategoryTVC.
What I'd like to do:
Create a special cell on CategoryTVC that segues to an AddCategoryTVC where I can create a new category in the managedObjectContext.
I know I'd need to add a special cell at index[0] that segues with I click. I'd like to drive that off the count of my category.count. I'd add the extra space for my special cell with numberOfRowsInSection (ex: category.count+1). For the segue to AddCategoryVC, I'd have to treat my "Add Category" cell differently (I'd make it index[0])
Any ideas how I'd do this would be greatly appreciated.