I currently have a view configured as follows:
@interface BlogViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { UITableView *mainTableView; } @property (nonatomic, retain) UITableView *mainTableView;
As you can see, it has a UITableView in which I load all my data. However, when I call the following function:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { SingleBlogViewController *viewController = [[SingleBlogViewController alloc] init]; [self.navigationController pushViewController:viewController animated:YES];
Nothing happens. For some reason, my UITableView inside my UIViewController not pushing the view. Is it because it is not a UITableViewController ? I tried changing it to this, and it still doesn't work.
Did I miss something?
joshholat
source share