title: Objective C: "Property implementation must have its declaration in interface"
body: <p>I have the following code:</p>
  
  <p>//RootViewController.h:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface RootViewController : UIViewController{
      IBOutlet UITextField *login_uname;
      IBOutlet UITextField *login_pword;
      IBOutlet UIActivityIndicatorView *login_thinger;
      IBOutlet UIImageView *logo;
      IBOutlet UISwitch *login_remember;
  
      IBOutlet UIScrollView *scrollView;
  }
  
  
  
  
  -(IBAction) login_submitClick:(id)sender;
  -(IBAction) doneEditing:(id)sender;
  -(IBAction) clearPword:(id)sender;
  -(void) showSignUp:(id)sender;
  
  -(void)doLogout:(id)sender;
  
  //for file handling:
  -(NSString *)documentsPath;
  -(NSString *)readFromFile:(NSString *)filePath;
  -(void) writeToFile:(NSString *)text withFileName:(NSString *) filePath;
  
  @end
  </code></pre>
  
  <p>//RootViewController.m</p>
  
  <pre><code>#import "RootViewController.h"
  //#import "Main.h"
  //#import "SignUp.h"
  #import "ASIHTTPRequest.h"
  #import "ASIFormDataRequest.h"
  #import "CommonCrypto/CommonHMAC.h"
  #import "Details.h"
  //#import "signUpSMS.h"
  #import "JSON.h"
  
  @implementation PrestoCab3ViewController
  @synthesize login_uname;   //this line throws the error in the title
  
  ...
  </code></pre>
  
  <p>I'm using XCode 4.1 and was wondering if someone could please help me get to the bottom of this error. I'm very new to XCode.</p>
  
  <p>Many thanks in advance,</p>