Thanks for you'r help..I'm in love with this product now.. I can do more stuff.. One more question.
I wanted to display each VC under sperate sections. When user clicks the view controller VC1 under section1 display view controller VC1 and if user clicks the view controller VC2 under section2 display view controller VC2. I tried with below code
but it always goes to VC1. How do I tell the section 2 needs to display VC2 instead of VC1? Also my cell does'nt have arrow indication.Anything needs to setup arrow indication..
- (void)tableViewModel:(SCTableViewModel *)tableViewModel
didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
DDLogInfo(@" didSelectRowAtIndexPath ......");
UIViewController *viewController;
switch (indexPath.row) {
case 1:
viewController = [[ViewController1 alloc] initWithNibName:@"ViewController1" bundle:nil] autorelease];
break;
case 2:
viewController = [[ViewController2 alloc] initWithNibName:@"ViewController2" bundle:nil] autorelease];
break;
case 3:
viewController = [[ViewController3 alloc] initWithNibName:@"ViewController3" bundle:nil] autorelease];
break;
default:
viewController = [[UIViewController alloc] init] autorelease];
}
[self.navigationController pushViewController:viewController animated:YES];
}