在我的應用我有一個情況我編程方式更改tabBarController的選定索引這樣如何編程趕上改變tabBarController的setSelectedIndex
[self.tabBarController setSelectedIndex:0];
,並回到我的包含一個UITableView標籤」在這一點上我需要讓我的tableView 一些行動,我試圖用viewWillAppear中,並沒有到達那裏,我試圖使視圖代表這樣
@interface ThirdViewController : UITableViewController < UISearchBarDelegate,UINavigationControllerDelegate, UITabBarDelegate>
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController{
它沒有工作
任何人都知道該怎麼做?
tabBarController:didSelectViewController :僅在UITabBarController的ui事件(單擊)時被調用,並且在使用[self.tabBarController setSelectedIndex:0]時我沒有一個;我試過了,但它不起作用 – 2012-04-28 06:58:29
爲什麼你接受這個答案,如果它不適合你? – yunas 2013-03-07 15:23:33