我需要从TabBar单击时设置ViewController的属性。从UITabBar初始化UIViewController的属性
我试图做它didSelectViewController
- 但ViewWillAppear
完成后它被调用,一切都太迟了
我试着这样做:
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController
但viewController
是发端tabBarIndex而不是目的地tabBarIndex
我该怎么办?
发布的所有代码 – jcesarmobile 2014-11-05 15:57:08
看我的自己的回答 – Boaz 2014-11-05 16:14:01