开发者

How can I put tabs in a table view?

When a user clicks on a开发者_如何学Python cell in table , the view should switch to a tabbed view.

The content on each of the tabs will be different depending on which cell the user selects.

How can I make something like this?


Seems you need navigation based application. Read the tutorial

Shortly: create UINavigationController, add your table controller as a root controller of the navigation controller. Then in tableView:didSelectRowAtIndexPath: just push your tab controller into the navigation controller.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
  [self.navigationController pushViewController:tabViewController animated:YES];
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜