xcode4.2 建 TabBar 项目,代理类修改如下
来源:互联网 发布:java 游戏设计教程pdf 编辑:程序博客网 时间:2024/06/05 16:13
此TabBar结合了picker View
在代理类中加
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for customization after application launch. UIViewController *datePickerView = [[[DatePickerViewController alloc] initWithNibName:@"DatePickerViewController" bundle:nil] autorelease]; UIViewController *singleComponentPickerView = [[[SingleComponentPickerViewController alloc] initWithNibName:@"SingleComponentPickerViewController" bundle:nil] autorelease]; UIViewController *doubleComponent = [[[DoubleComponentPickerViewController alloc]initWithNibName:@"DoubleComponentPickerViewController" bundle:nil] autorelease]; UIViewController *dependentComponent = [[[DependentComponentPickerViewController alloc]initWithNibName:@"DependentComponentPickerViewController" bundle:nil] autorelease]; UIViewController *customPicker = [[[CustomPickerViewController alloc]initWithNibName:@"CustomPickerViewController" bundle:nil] autorelease]; self.tabBarController = [[[UITabBarController alloc] init] autorelease]; self.tabBarController.viewControllers = [NSArray arrayWithObjects:datePickerView, singleComponentPickerView , doubleComponent, dependentComponent, customPicker, nil]; self.window.rootViewController = self.tabBarController; [self.window makeKeyAndVisible]; return YES;}
阅读全文
0 0
- xcode4.2 建 TabBar 项目,代理类修改如下
- Xcode4修改工程(项目)名称
- Xcode4修改工程(项目)名称
- IOS 项目名称修改(XCODE4.6)
- XCODE4下项目名称的修改
- 简单总结修改项目中navBar和tabBar的坑
- xcode4.2 中tabBar的模板的一些理解和体会
- xcode4.2 空项目如何加载view
- xcode4.2 空项目 怎么加载view
- Xcode4 修改公司名称
- 修改tabbar 背景图标
- 修改tabbar 背景图标
- 修改tabbar 背景图标
- 修改tabbar 背景图标
- tabBar背景颜色修改
- tabBar颜色修改
- 修改tabbar背景颜色
- tabbar颜色修改
- 网易2018校园招聘编程题真题 合唱
- submile 验证接口的技巧
- xcode 4.2 如何调试 EXC_BAD_ACCESS
- ajax-总结
- 首次写文章测试!!!
- xcode4.2 建 TabBar 项目,代理类修改如下
- html-dom-总结
- sql server如何将高版本的数据迁移到低版本中。解决数据库 'XX' 的版本为 655,无法打开。此服务器支持 611 版及...
- xcode4.2 用 empty 模板 建 Nav
- DOM-总结
- 推荐《陪你一起健身的疯狂教练》
- 创建按钮 ,添加到导航栏
- xml-总结
- DTD-总结