title: Beginner struggling with Objective-C
body: <p>I'm following an objective-c book (objective-c fundamentals by Fairbairns, Fahrenkrug, Ruffenach), and I've fallen at the first hurdle with their CoinToss example.</p>
  
  <p>I'm getting an 'expression expected' error on this line:</p>
  
  <pre><code>￼￼￼result.text = coinLandedOnHeads ? @"Heads" : @"Tails";
  </code></pre>
  
  <p>I have also included a screenshot of the whole page below.
  What exactly is the problem?  I've checked and double checked the code is the same as the book, but have I missed something very obvious?</p>
  
  <p>Thanks!</p>
  
  <p><img src="https://i.stack.imgur.com/LBLpr.jpg" alt="xcode window"></p>
  
  <p>EDIT:
  Here is my header file:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface ViewController : UIViewController {
      UILabel *status;
      UILabel *result;
  }
  
  @property (nonatomic, retain) IBOutlet UILabel *status;
  @property (nonatomic, retain) IBOutlet UILabel *result;
  
  -(IBAction)callHeads;
  -(IBAction)callTails;
  
  @end
  </code></pre>