bharath2020 / UITableViewTricks

Simple UITableView tricks with focus on UITableViewCell Layout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pushViewController

bayfatih2000 opened this issue · comments

When I select a cell on the table, it passes to second screen. However, the second screen comes with only a black page. Nothing (button, label...) is seen.

  • (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
    ViewController2 *view2 = [[ViewController2 alloc] init];
    [self.navigationController pushViewController:view2 animated:YES];
    }

What can I do ?

Thank you

Also, storyboard (from table cell to second view controller) is not working. I don't understand why?