I am learning my way through Sensible TableView, great product so far!
Piggybacking on the same question, my project is Windows based (not Navigation). I tried adding a nav bar by hand and was not successful. I now created a NIB file and with the Interface Builder added only two items (navigation bar, Table View). Please see picture attached.
I am now trying to follow your suggestion and make this happen: “you just need to create an SCTableViewModel for each UITableView you have…”, in my case I just have one.
My .h file looks like:
#import <UIKit/UIKit.h>
#import "SCTableViewModel.h"
@interface NewGame : UIViewController < SCTableViewModelDelegate, SCTableViewCellDelegate > {
SCTableViewModel *tableModel;
}
@end
Two questions:
1) What parameters do I need in the command: tableModel = [SCTableViewModel alloc] initWithTableView:self.tableView withViewController:self];?
2) How do I bound the Navigation Bar that I added through Interface Builder to this tableModel so that I can use the Add, Delete…features that are based on the Nav Bar?
Thanks!