title: Trying to debug a 'Assertion failure in -[UIActionSheet showInView:]' error
body: <p>I am working through "Beginning iPad Application Development" and am getting hung up in Chapter 3 where I have created a project that works with an Action Sheet.</p>
  
  <p>As it stands now, my application loads into the simulator just fine with no errors that I am aware of, but as it runs, it crashes with the following errors showing up in the debugger window:</p>
  
  <blockquote>
    <p>2010-05-31 19:44:39.703 UsingViewsActionSheet[49538:207] *** Assertion
    failure in -[UIActionSheet showInView:],
    /SourceCache/UIKit_Sim/UIKit-1145.66/UIAlert.m:7073</p>
    
    <p>2010-05-31 19:44:39.705 UsingViewsActionSheet[49538:207] ***
    Terminating app due to uncaught exception
    'NSInternalInconsistencyException', reason: 'Invalid parameter not
    satisfying: view != nil</p>
  </blockquote>
  
  <p>'</p>
  
  <p>I am sure that this is the block where the app breaks based upon my use of breakpoints.</p>
  
  <p>//Implement <code>viewDidLoad</code> to do additional setup after loading the view, typically from a nib.</p>
  
  <p><code>
  - (void)viewDidLoad {
      UIActionSheet *action = [[UIActionSheet alloc]
                               initWithTitle:@"This is my Action Sheet!"
                               delegate:self
                               cancelButtonTitle:@"OK"
                               destructiveButtonTitle:@"Delete Message!"
                               otherButtonTitles:@"Option 1", @"Option 2", @"Option 3", nil];</p>
  
  <pre><code>[action showInView:self.view];  // &lt;-- This line seems to trigger the crash....
  [action release];
  [super viewDidLoad];
  </code></pre>
  
  <p>}
  </code></p>
  
  <p>Am I missing something obvious, or is there more to the problem than is shown here? I have looked at the abstract for showInView and cannot divine anything there yet.</p>
  
  <p>I appreciate any and all asssitance.</p>
  
  <p>Regards,</p>
  
  <p>Steve O'Sullivan</p>