ios -UI-UI-菜单栏+导航栏
来源:互联网 发布:linux 搭建OpenVPN 编辑:程序博客网 时间:2024/04/28 20:36
//
// ViewController.m
// UI-tableBar
//
// Created by jzq_mac on 15/7/28.
// Copyright (c) 2015年 jzq_mac. All rights reserved.
//
#import "ViewController.h"
@interfaceViewController ()
//
// AppDelegate.m
// UI-菜单栏+导航栏
//
// Created by jzq_mac on 15/7/28.
// Copyright (c) 2015年 jzq_mac. All rights reserved.
//
#import "AppDelegate.h"
#import "ViewController.h"
#import "NewsViewController.h"
#import "UserInfoViewController.h"
@interfaceAppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindowalloc]initWithFrame:[UIScreenmainScreen].bounds];
ViewController *vc = [[ViewControlleralloc]init];
UINavigationController *quanzi = [[UINavigationControlleralloc]initWithRootViewController:vc];
NewsViewController *news = [[NewsViewControlleralloc]init];
UINavigationController *newsVc = [[UINavigationControlleralloc]initWithRootViewController:news];
UserInfoViewController *userInfo = [[UserInfoViewControlleralloc]init];
UINavigationController *userInfos = [[UINavigationControlleralloc]initWithRootViewController:userInfo];
UITabBarController *tabBarController = [[UITabBarControlleralloc]init];
tabBarController.viewControllers =@[quanzi,newsVc,userInfos];
NSArray *titles =@[@"圈子",@"新闻",@"个人中心"];
for (int i =0; i < 3; i++) {
UITabBarItem *tabBars = tabBarController.tabBar.items[i];
tabBars.title = titles[i];
tabBars.image = [UIImageimageNamed:titles[i]];
}
self.window.rootViewController = tabBarController;
[self.windowmakeKeyAndVisible];
return YES;
}
- (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
- ios -UI-UI-菜单栏+导航栏
- ioS -UI-菜单栏的实现
- IOS(UI)_UINavigationBar(导航控制器)
- UI-UINavigationController导航栏
- iOS UI之删除导航栏左侧按钮
- 十六、UI-Grid 菜单栏
- UI-BottomNavigationBar-底部导航栏
- element-ui 设置菜单栏展开
- Android UI-仿微信底部导航栏布局
- Android开发UI之隐藏导航栏
- Android UI-仿微信底部导航栏布局
- UI课程(导航栏navigationItem)
- Android UI-仿微信底部导航栏布局
- Android UI顶部导航栏模板
- 管理System UI (状态栏 + 导航栏)
- 安卓UI-底部导航栏
- UI设计师网址导航
- UI UINavigationController导航控制器
- HDU 2601An easy problem-素数的运用,暴力求解
- 2015-07-27
- mongodb collections类型转换
- SSM框架搭建
- GTK常用控件之进度条( GtkProgressBar )
- ios -UI-UI-菜单栏+导航栏
- ElasticSearch笔记
- Objective-C编程规范
- poj 1733 Parity game(种类并查集)
- Bitmap和Drawable的互相转换
- 使用maven开发OSGI例子
- 扑克牌顺子
- LCS算法
- 什么转换器能将excel转换成pdf