0
用故事板我已经创建了一个UINavigationController
和两个UITableViewContorllers
:苹果 - 问题的UISearchBar与UINavigationConroller
(MasterViewContoller
)
和
(Level2Contoller
)。
UITableViewControllers
顶部有UISearchBar
。 MasterViewContoller
设置为UINavigationConroller
的根。
现在的问题是,当我使用下面的代码去level2,我没有得到Level2Contoller
上的一个搜索栏。
level2Contoller *l2 = [[level2Contoller alloc]init];
[[self navigationController] pushViewController :l2 animated:YES];