だから私はちょうど新しいプロジェクトを作成しました、そして私がファイルに触れる前にそれはエラーを示しています、私は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
そして、「@ interface"ViewController.h"」のタイトルにあるエラーが表示されます。