|
查看: 3408|回复: 9
|
iOS开发教学 - Malaysia Car Plate
[复制链接]
|
|
|

楼主 |
发表于 27-3-2012 01:14 PM
|
显示全部楼层
本帖最后由 sooyewguan 于 28-3-2012 04:08 PM 编辑
第二章:UITableView + UINavigationController
> 如何把TableViewController加进NavigationController
打开 AppDelegate.h, 然后跟改想以下的code- @interface AppDelegate : UIResponder <UINavigationControllerDelegate>
- {
- }
- @property (strong, nonatomic) UIWindow *window;
- @property (strong, nonatomic) UINavigationController *navigationController;
复制代码 然后在打开 AppDelegate.m 跟改以下的code
- @synthesize window = _window;
- @synthesize navigationController = _navigationController;
- - (void)dealloc
- {
- [_window release];
- [_navigationController release];
- [super dealloc];
- }
- - (BOOL)applicationUIApplication *)application didFinishLaunchingWithOptionsNSDictionary *)launchOptions
- {
- self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
- ViewController *viewController1 = [[[ViewController alloc] initWithNibName"ViewController" bundle:nil] autorelease];
- self.navigationController = [[[UINavigationController alloc] initWithRootViewController:viewController1] autorelease];
- self.window.rootViewController = self.navigationController;
- [self.window makeKeyAndVisible];
- return YES;
- }
复制代码

http://blog.bedtime-creations.com/?p=30 |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 27-3-2012 10:12 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 28-3-2012 03:49 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 13-4-2012 10:12 AM
|
显示全部楼层
很少人会这样share project。
谢谢LZ的用心。
可惜,自己没有iphone和mac机,只能看不能学。
不过还是要顶一下! |
|
|
|
|
|
|
|
|
|
|
发表于 23-4-2012 12:00 AM
|
显示全部楼层
donwload来玩了,很不错的apps .gif) |
|
|
|
|
|
|
|
|
|
|
发表于 1-7-2012 04:40 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 4-11-2013 10:47 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 13-11-2013 11:43 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 23-2-2014 10:15 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|