xcode4.2 建 TabBar 项目,代理类修改如下
2017-10-17 18:08
183 查看
此TabBar结合了picker View
在代理类中加
MyPickerView.zip (108.3 KB)
下载次数: 6
在代理类中加
- (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; }
MyPickerView.zip (108.3 KB)
下载次数: 6
相关文章推荐
- iphone xcode4.2 如何修改项目工程名称
- Xcode修改项目的Build Location
- xcode修改项目名后反复出现 clang error
- 使用Xcode修改iOS项目工程名和路径名
- 常用Xcode文档位置,修改Xcode项目模板地址总结,以及常用地址
- xCode4.2中导入OpenFlow库到项目中出现编译警告warning: Semantic Issue: Writable atomic property
- Xcode修改项目名称
- 如何修改XCode项目模板
- 使用Xcode修改iOS项目工程名和路径名
- 解决Xcode 6 beta 编译Cocos2d-x iOS项目失败 在Xcode 6 里编译 iOS项目时可能会失败,提示如下错误: Undefined symbols
- Xcode4.2中将Three20开源库导入到工程项目中
- 修改使用XCODE来管理项目的用户名和密码
- ios如何在Xcode中修改整个项目名字
- Xcode修改新建项目注释模板(作者和公司名等)
- Xcode 下 修改项目横竖屏 (简单实现)
- 不修改Xcode项目加载Reveal
- 使用Xcode修改iOS项目工程名和路径名
- xcode修改项目名后反复出现 clang error
- 使用Xcode修改iOS项目工程名和路径名
- 完美解决:xcode4.2 修改__MyCompanyName__,终于让我找到方法了