我目前正在开发一个应用程序,我在情节提要中有两个主要视图;视图控制器和主视图控制器。
我在我的 MainViewController.m 中提出了Expected Identifier
和错误。Expected method body
这是文件:
//
// MainView.m
// Ski Finder Intro
//
// Created by Hunter Bryant on 10/20/12.
// Copyright (c) 2012 Hunter Bryant. All rights reserved.
//
#import "MainViewController.h"
@interface MainViewController ()
@end
@implementation MainViewController
- (id)initWithNibName:@"MainViewController" bundle:Nil //Here are both of the errors.
{
self = [super initWithNibName:@"MainViewController'" bundle:Nil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end