Help with xcode, 3 errors not sure how to fix

Discussion in 'C Programming' started by Ben, Mar 28, 2011.

  1. Ben

    Ben

    Joined:
    Mar 28, 2011
    Messages:
    4
    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
    Ben, Mar 28, 2011
    #1
    1. Advertising

  2. Ben

    Ben

    Joined:
    Mar 28, 2011
    Messages:
    4
    figured it out. Pleae delete
    Ben, Mar 30, 2011
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xah Lee
    Replies:
    22
    Views:
    1,121
    Tim Roberts
    Mar 21, 2006
  2. Xah Lee
    Replies:
    23
    Views:
    1,062
    Tim Roberts
    Mar 21, 2006
  3. Himayat66@gmail.com
    Replies:
    0
    Views:
    551
    Himayat66@gmail.com
    Feb 7, 2008
  4. Xah Lee
    Replies:
    21
    Views:
    783
    Tim Roberts
    Mar 21, 2006
  5. Zak Asaad
    Replies:
    5
    Views:
    409
    Zak Asaad
    Apr 23, 2013
Loading...

Share This Page