欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

UITabBarController的使用----底部導(dǎo)航-創(chuàng)新互聯(lián)

//

創(chuàng)新互聯(lián)主營福田網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,成都app軟件開發(fā)公司,福田h5小程序開發(fā)搭建,福田網(wǎng)站營銷推廣歡迎福田等地區(qū)企業(yè)咨詢

// AppDelegate.m

// UITabBarController9-11

//

// Created by liuyafang on 14-9-11.

// Copyright (c) 2014年 lanou3g.com 藍(lán)鷗科技. All rights reserved.

//

#import "AppDelegate.h"

#import "FirstViewController.h"

#import "SecondViewController.h"

#import "ThirdViewController.h"

#import "FourthViewController.h"

#import "FifthViewController.h"

#import "SixthViewController.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

  self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

  // Override point for customization after application launch.

  self.window.backgroundColor = [UIColor whiteColor];

  [self.window makeKeyAndVisible];

  //UITabBarController的使用

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

  self.window.rootViewController = tabVC; //把UITabBarController設(shè)置為根試圖控制器

  FirstViewController *firetVC = [[FirstViewController alloc] init];

  firetVC.title = @"一";

  firetVC.tabBarItem.p_w_picpath = [UIImage p_w_picpathNamed:@"6.png"];

  //1.(初始化)直接調(diào)用系統(tǒng)圖標(biāo) 和tag值

  firetVC.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:100];

  SecondViewController *secondVC = [[SecondViewController alloc] init];

  secondVC.title = @"二";

  secondVC.tabBarItem.p_w_picpath = [UIImage p_w_picpathNamed:@"5.png"];

  //2.(初始化)標(biāo)題不變 圖片點擊后會改變

  secondVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"hehe" p_w_picpath:[UIImage p_w_picpathNamed:@"6.png"] selectedImage:[UIImage p_w_picpathNamed:@"5.png"]];

  ThirdViewController *thirdVC = [[ThirdViewController alloc] init];

  thirdVC.title = @"三";

  thirdVC.tabBarItem.p_w_picpath = [UIImage p_w_picpathNamed:@"4.png"];

  //3.(初始化)標(biāo)題可變,圖標(biāo)可變,還有tag值

  thirdVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"嘻嘻" p_w_picpath:[UIImage p_w_picpathNamed:@"4.png"] tag:200];

  FourthViewController *fourthVC = [[FourthViewController alloc] init];

  fourthVC.title = @"四";

  fourthVC.tabBarItem.p_w_picpath = [UIImage p_w_picpathNamed:@"3.png"];

//  //保持圖片原有形態(tài)加入到tabBar中

//  UIImage *p_w_picpath = [UIImage p_w_picpathNamed:@"aa.png"];

//  //對圖片進行處理

//  p_w_picpath = [p_w_picpath p_w_picpathWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

//  fourthVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"嘻嘻" p_w_picpath:[UIImage p_w_picpathNamed:@"aa.png"] tag:300];

  FifthViewController *fifthVC = [[FifthViewController alloc] init];

  fifthVC.title = @"五";

  fifthVC.tabBarItem.p_w_picpath = [UIImage p_w_picpathNamed:@"1.png"];

//  SixthViewController *sixthVC = [[SixthViewController alloc] init];

  //把UINavigationController和tabBar結(jié)合起來

  //1.把第一個VC設(shè)置為navVC的根試圖控制器

  //2.banavVC視圖控制器存放到數(shù)組中

  UINavigationController *navVC = [[UINavigationController alloc] initWithRootViewController:firetVC];

  //創(chuàng)建一個試圖控制器的數(shù)組

  NSArray *array = [NSArray arrayWithObjects:navVC, secondVC, thirdVC, fourthVC, fifthVC, nil];

  //把數(shù)組放到tabBarController中

  tabVC.viewControllers = array;

  //調(diào)整tabBer的顏色

  tabVC.tabBar.backgroundColor = [UIColor cyanColor];

  //字體選中后的顏色

  tabVC.tabBar.tintColor = [UIColor redColor];

  //調(diào)整bar模糊效果

  tabVC.tabBar.translucent = YES;

  [tabVC release];

  [_window release];

  return YES;

}

- (void)dealloc

{

  [_window release];

  [super dealloc];

}

- (void)applicationWillResignActive:(UIApplication *)application

{

  // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.

  // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.

}

- (void)applicationDidEnterBackground:(UIApplication *)application

{

  // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.

  // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.

}

- (void)applicationWillEnterForeground:(UIApplication *)application

{

  // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.

}

- (void)applicationDidBecomeActive:(UIApplication *)application

{

  // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.

}

- (void)applicationWillTerminate:(UIApplication *)application

{

  // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.

}

@end

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

分享標(biāo)題:UITabBarController的使用----底部導(dǎo)航-創(chuàng)新互聯(lián)
文章路徑:http://www.aaarwkj.com/article0/phiio.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機網(wǎng)站改版、軟件開發(fā)動態(tài)網(wǎng)站、外貿(mào)建站面包屑導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站建設(shè)
亚洲成人精品久久久| 九色91成人在线视频| 亚洲综合久久五月天| 亚洲国产丁香综合激情啪| 少妇被又粗又硬猛烈进视频| 欧美精品中出一区二区三区 | 中文字幕有码在线朋友| 亚洲av日韩专区在线观看| 成人偷拍自拍在线视频| 亚洲乱色一区二区三区丝袜| 麻豆视频91免费观看| 91狠狠综合久久精品| 日韩精品一区中文字幕在线| 亚洲一区二区三区免费在线看| 成年人性生活网站视频| 欧美日本黄色一级视频| 亚洲国产成人精品女人| av一区二区三区不卡在线看| 国产国产精品人在线观看| 久久色综合色悠悠色综合色| 欧美日韩一区二区综合性色| 午夜福利主播一区二区| 欧美日韩精品一区二区三| 黄色高清无遮挡在线观看| 国产日韩欧美一区二区三区四区| 国产欧美日本综合一区| 欧美成人午夜精品一区二区| 日韩精品视频一区二区在线观看| 亚洲大乳大丰满中文字幕| 欧美性极品少妇精品网站| 中文字幕人妻丝袜一区一三区 | 中文字幕人妻日韩在线| 亚洲国产精品一区二区三区| 中文字幕日韩在线欧美一区| 日韩精品成人区中文字幕| 日本成熟妇高潮视频在线观看不卡| 国产黄色三级电影在线| 中文字幕精品人妻在线| 一区二区三区在线观看精品| 免费精品黑人一区二区三区| 日本一区二区三在线观看|