对不起,我没有Xcode4.3.2,并不总是说得对。
xcode 4.2,不要使用MainWindow.nib,所以你应该指定self.window.rootViewController。
rootViewController是AppDelegate的视图控制器在 以前版本的MainWindow.nib中的ViewController。
假设类是RootViewController的,然后
#import "RootViewController.h"
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
self.window.rootViewController = [[RootViewController alloc] init];
[self.window.makeKeyAndVisible];
return YES:
}
你如何做到这一点是什么呢?对不起,我是xcode编程的新手。 – 2012-04-09 04:15:40
对不起,我没有Xcode4.3.2,并不总是说得对。 – xzgyb 2012-04-09 05:22:21