您的位置:首页 > 产品设计 > UI/UE

自定义UITabBarContorller下面的ta…

2014-01-13 16:13 411 查看
   //构建自定义TabBar

- (void)initCustomTabBar{

    

    QFAmountC
*amountC = [QFAmountC new];

    QFTradeListC
*tradeListC = [QFTradeListC new];

    QFMerchantC
*merchantC = [QFMerchantC new];

    QFExpandC
*expandC = [QFExpandC new];

    

   
UINavigationController *amountNav = [[[UINavigationController
alloc]initWithRootViewController:amountC]autorelease];

   
UINavigationController *tradeListNav = [[[UINavigationController
alloc]initWithRootViewController:tradeListC]autorelease];

   
UINavigationController *merchantNav = [[[UINavigationController
alloc]initWithRootViewController:merchantC]autorelease];

   
UINavigationController *expandNav = [[[UINavigationController
alloc]initWithRootViewController:expandC]autorelease];

      
 

   
tabBarController.viewControllers = [NSArray
arrayWithObjects:amountNav,tradeListNav,merchantNav,expandNav,nil];

      
 

   
tabBarController.tabBarImagesArray = [NSMutableArray
arrayWithObjects:

                                         
[UIImage imageNamed:@"tab_card@2x"],

                                         
[UIImage imageNamed:@"tab_trade@2x"],

                                         
[UIImage imageNamed:@"tab_Profile@2x"],

                                         
[UIImage imageNamed:@"tab_apps@2x"],

                                  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: