自定义UITabBarContorller下面的ta…
来源:互联网 发布:android 源码下载编译 编辑:程序博客网 时间:2024/06/05 02:46
//构建自定义TabBar
- (void)initCustomTabBar{
QFAmountC*amountC = [QFAmountC new];
QFTradeListC*tradeListC = [QFTradeListC new];
QFMerchantC*merchantC = [QFMerchantC new];
QFExpandC*expandC = [QFExpandC new];
UINavigationController *amountNav = [[[UINavigationControlleralloc]initWithRootViewController:amountC]autorelease];
UINavigationController *tradeListNav = [[[UINavigationControlleralloc]initWithRootViewController:tradeListC]autorelease];
UINavigationController *merchantNav = [[[UINavigationControlleralloc]initWithRootViewController:merchantC]autorelease];
UINavigationController *expandNav = [[[UINavigationControlleralloc]initWithRootViewController:expandC]autorelease];
tabBarController.viewControllers = [NSArrayarrayWithObjects:amountNav,tradeListNav,merchantNav,expandNav,nil];
tabBarController.tabBarImagesArray = [NSMutableArrayarrayWithObjects:
[UIImage imageNamed:@"tab_card@2x"],
[UIImage imageNamed:@"tab_trade@2x"],
[UIImage imageNamed:@"tab_Profile@2x"],
[UIImage imageNamed:@"tab_apps@2x"],