title: @end must appear in an objective-c context
body: <p>I am Following a tutorial at <a href="http://www.raywenderlich.com/14172/how-to-parse-html-on-ios" rel="nofollow">http://www.raywenderlich.com/14172/how-to-parse-html-on-ios</a> .</p>
  
  <p>Here is my detailviewcontroller.h file.</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
      @end &lt;-- //errors shows up here.
  
      @interface DetailViewController : UIViewController
  
      @property (strong, nonatomic) id detailItem;
  
      @property (weak, nonatomic) IBOutlet UILabel *detailDescriptionLabel;
      @end
  </code></pre>
  
  <p>This is my detailview.m  file</p>
  
  <pre><code>#import "DetailViewController.h"
  
  
  @interface DetailViewController ()
  - (void)configureView;
  @end
  
  @implementation DetailViewController
  
  #pragma mark - Managing the detail item
  
  - (void)setDetailItem:(id)newDetailItem
  {
      if (_detailItem != newDetailItem) {
          _detailItem = newDetailItem;
  
          // Update the view.
          [self configureView];
      }
  }
  
  - (void)configureView
  {
      // Update the user interface for the detail item.
  
      if (self.detailItem) {
          self.detailDescriptionLabel.text = [self.detailItem description];
      }
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
      [self configureView];
  }
  
  - (void)viewDidUnload
  {
      [super viewDidUnload];
      // Release any retained subviews of the main view.
  }
  
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
  }
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
          self.title = NSLocalizedString(@"Detail", @"Detail");
      }
      return self;
  }
  
  @end
  </code></pre>
  
  <p>As i referred above, the @end error message appears and wait to auto fix in red square, the i agree to do the auto fix. Then the xCode applies the @end code over there, as shown in the .h file. Then an other error appears as which is in the title " @end must appear in an objective-c context " </p>
  
  <p>what should i do ? 
  Is xCode gone mad or what.</p>
  
  <p>Whats wrong ? </p>