当前位置:编程学习 > wap >>

UITabBarController 获得selecdIndex

UITabBarControllerDelegate
 
 
mainTabBarController.delegate = self;
 
 
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
{
    switch (tabBarController.selectedIndex) {
        case 0:///周边
            [self SetLFMBtnList_ZB];
            break;
        case 1:////秀秀
            break;
        case 2://关注
            [self SetLFMBtnList_GZ];
            break;
        case 3://设置
            
            break;
        case 4://活动
            
            break;
            
        default:
            break;
    }
}
补充:移动开发 , IOS ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,