Xcode 4.3"预期标识符或'('"

0 iphone sdk xcode

所以我刚刚创建了一个新项目,它在我触摸文件之前显示错误,我是Xcode的新手,但这是我的代码:

#import "ViewController.h"

@interface "ViewController.h"

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
        return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
    } else {
        return YES;
    }
}

@end
Run Code Online (Sandbox Code Playgroud)

并且它显示了"@interface"ViewController.h中标题中的错误""

Ale*_*ers 8

那是错误.你想要的@interface ViewController.