我将如何调用Application didiFinishLaunchingWithOption中的函数

时间:2011-11-01 08:13:14

标签: iphone

我想在“application didFinishLaunchingWithOptions”

中使用show function
-(void)show
{
NSLog(@"AAA");
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:      (NSDictionary *)launchOptions {    




[self.window makeKeyAndVisible];


return YES;
}

2 个答案:

答案 0 :(得分:2)

只需在[self show];

之前致电Return

答案 1 :(得分:1)

使用[自我表演];你的应用程序内部有didFinishLaunchingWithOptions。