Note that there are some explanatory texts on larger screens.

plurals
  1. POproperty implementation must have its declaration in interface error
    text
    copied!<p>"property implementation must have its declaration in interface" error</p> <p>I have this error coming up and I am new to xcode so I am unsure what to do. </p> <p>I had lots of code in a class, then i moved it to a different class and now I have numerous errors. Which dont make sense, as everything looks as it should.</p> <pre><code>#import "ViewController.h" @interface ViewController () @end @implementation ViewController @synthesize MenuScreenButton; @synthesize HowToPlayButton; - (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, typically from a nib. } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } -(IBAction)HowToPlayButtonPressed:(id)sender { HowToPlayViewController *HowToPlayView=[[HowToPlayViewController alloc]initWithNibName:nil bundle:nil]; HowToPlayView.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal; [self presentViewController:HowToPlayView animated:YES completion:NULL]; } -(IBAction)MenuScreenButtonPressed:(id)sender { MenuScreen *MenuScreenView=[[MenuScreen alloc]initWithNibName:nil bundle:nil]; MenuScreenView.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal; [self presentViewController:MenuScreenView animated:YES completion:NULL]; } @end </code></pre> <p>Below is the .h file:</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import "HowToPlayViewController.h" #import "MenuScreen.h" @interface ViewController : UIViewController { IBOutlet UIButton *HowToPlayButton; IBOutlet UIButton *MenuScreenButton; } @property(retain,nonatomic) IBOutlet UIButton *MenuScreenButton; @property(retain,nonatomic) IBOutlet UIButton *HowToPlayButton; -(IBAction)HowToPlayButtonPressed:(id)sender; -(IBAction)MenuScreenButtonPressed:(id)sender; @end </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload