Help with xcode, 3 errors not sure how to fix

Ben

Joined
Mar 28, 2011
Messages
4
Reaction score
0
Hi, im making an app an when i pressed run to see it in the ios simulator (virtual iphone) in xcode 4.0 it says build failed and 3 errors come up. Please tell me whats wrong, The errors are as follows: Expected ':' before 'implementation' , Expected identifier '(' , Missing @end. Heres the code:


#import "FirstViewController.h"

FirstViewController;

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

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
{
> { // Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}


- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc. that aren't in use.
}


- (void)viewDidUnload
{
[super viewDidUnload];

// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}


- (void)dealloc
{
[super dealloc];
}

@end


@end
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top