zoukankan      html  css  js  c++  java
  • UINavigationController 与 UITabBarController

    http://www.cnblogs.com/YouXianMing/p/3756904.html

    // index start from 1.
    UITabBarItem *newsItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:1];
    //UITabBarItem *homeItem = [[UITabBarItem alloc] initWithTitle:@"首页" image:[UIImage imageNamed: @""] tag:1];
    NewsViewController *newsController = [[NewsViewController alloc] init];
    newsController.tabBarItem = newsItem;
    [newsItem release];
    
    UINavigationController *newsNav = [[UINavigationController alloc] initWithRootViewController:newsController];
    [newsController release];
    
    // repeat other here NSArray
    *viewControllers = @[newsNav]; [newsNav release]; UITabBarController *tabController = [[UITabBarController alloc]init]; // tabController.viewControllers = @[newsNav]; [tabController setViewControllers:viewControllers animated:YES]; self.window.rootViewController = tabController;
  • 相关阅读:
    koller——PGM 基础
    java 类 多态
    java 基础知识
    相关性检验和独立性检验
    IDEA远程连接Hadoop
    sklearn pipeline
    java static
    sklearn learn preprocessing
    数据预处理 简介
    RATE-MAX alpha冲刺第八天
  • 原文地址:https://www.cnblogs.com/webglcn/p/5123698.html
Copyright © 2011-2022 走看看