title: Property 'delegate' not found on object 'AddEventViewController'
body: <p>With the help of the Developer Library, I am trying to work with the EventKit and EventKitUI Frameworks. I've hit a very early roadblock. I have copied and pasted <a href="http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html#//apple_ref/doc/uid/TP40007457-CH111-SW3" rel="nofollow">code from the library found here</a>. I have added a view controller called 'AddEventViewController' a button to the Navigation Bar in my ViewController and I am using this code to invoke it.</p>
  
  <pre><code>- (IBAction)add:(id)sender {
  AddEventViewController *addController = [[AddEventViewController alloc]
                                            init];
  addController.delegate = self;
  UINavigationController *navigationController = [[UINavigationController alloc]
                                                      initWithRootViewController:addController];
  [self presentViewController:navigationController animated:YES completion: nil];
  </code></pre>
  
  <p>}</p>
  
  <p>The error shows on line: <code>addController.delegate = self;</code></p>
  
  <p>This code is copied straight from the Library. I am using Xcode 4.2 and a Storyboard if that might help.</p>
  
  <p>UPDATE:
  This is AddEventViewController.h:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface AddEventViewController : UIViewController
  
  @end
  </code></pre>
  
  <p>You're going to tell me I created this ViewController incorrectly? Please explain why just not "how" if you'd be so nice?</p>