iOS 怎么设置 UITabBarController 的第n个item为第一响应者?

iOS 怎么设置 UITabBarController 的第n个item为第一响应者?

UITabBarController 里面有个属性:selectedIndex

@property(nonatomic) NSUInteger selectedIndex;

 UITabBarController *VC = [[UITabBarController alloc]init];

 VC.selectedIndex = n-1;

[self.navigationController pushViewController:VC animated:YES];

posted @ 2016-07-11 15:45  鸿鹄当高远  阅读(505)  评论(0编辑  收藏  举报