从UITabViewController导航到UITableViewController

时间:2011-11-21 07:11:49

标签: iphone objective-c

我有一个应用程序,我想通过点击按钮从UITabViewController导航到UITableViewController。

有人可以告诉我该怎么做?

1 个答案:

答案 0 :(得分:1)

使用以下方法,将方法名称传递给按钮的目标。 并且,当您想要从第一个导航时,只需粘贴TableViewController的名称..

-(IBAction) clickButton : (id) sender
{
   ViewOfSecondTableViewController *nextTable = [[ViewOfSecondTableViewController alloc] 
              initWithNibName:@"ViewOfSecondTableViewController" 
              bundle:[NSBundle mainBundle]];
   [self.navigationController nextTable animated:YES];
 }