所以我刚刚创建了一个新项目,它在我触摸文件之前显示错误,我是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中标题中的错误""
| 归档时间: |
|
| 查看次数: |
722 次 |
| 最近记录: |