一直試圖在一行代碼中找到錯誤。返回已被註釋掉的預期標識符錯誤。預期的標識
你能幫我找到錯誤嗎?謝謝。
對不起,編碼格式不正確;不知道如何在這裏得到它。
#import "BIDAppDelegate.h"
#import "BIDSwitchViewController.h"
@implementation BIDAppDelegate
@synthesize window = _window;
@synthesize switchViewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.switchViewController = [[BIDSwitchViewController alloc]
initWithNibName:@"Switch View"
bundle:nil];
UIView *switchView = self.switchViewController.view;
CGRect switchViewFrame = switchView.frame;
switchViewFrame.origin.y += [[UIApplication sharedApplication].statusBarFrame.size.height; // Expected identifier
switchView.frame = switchViewFrame;
[self.window addSubview:switchView];
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
的{}讓你的格式代碼。你將不得不這樣做,因爲我不知道你在說什麼。 –