开发者

How can I put tabs in a table view?

开发者 https://www.devze.com 2023-01-24 02:20 出处:网络
When a user clicks on a开发者_如何学Python cell in table , the view should switch to a tabbed 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

精彩评论

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