I am getting this error message and matched my brackets and couldn't find anything wrong. Can you find what's wrong? I really need help. Please. The error I am getting is this "Missing '[' at start of message send expression" I have commented where it occurs down near the end of my code. Please help me.
Thank you.
@interface HomeViewOne ()
@end
@implementation HomeViewOne
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
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.
}
- (IBAction)switchScreenHome:(id)sender {
//Code to switch screen from main menu to game
ViewController *view [[ViewController alloc] initWithNibName:nil bundle:nil]; //My error is on this line, it says Missing '[' at start of message send expression
[self presentModalViewController:view animated:YES];
}
@end