Objective c 它要求我在原型后面插入一个分号,但如果我这样做,我会得到一个预期的标识符错误?

Objective c 它要求我在原型后面插入一个分号,但如果我这样做,我会得到一个预期的标识符错误?,objective-c,xcode4.2,Objective C,Xcode4.2,Xcode要求我在launchoptions之后插入分号,但当我这样做时,会说我需要一个预期的标识符 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. return YES; YES; } - (voi

Xcode要求我在launchoptions之后插入分号,但当我这样做时,会说我需要一个预期的标识符

- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
return YES; YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can    occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL  ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the active state; here  you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end

它的目标C和问题可能返回YES;对是的,重复两次是的;对是错误的,但不是错误,但由于布尔值的原因,我将第二个“是”替换为“真”。您确实在编辑a.h而不是a.m,因此出现分号错误。为什么需要第二个“是/真”??把它拿走。西里尔可能是对的。。。。