title: Problems with UIActionSheet on iPad
body: <p>I'm making an application compatible for iPhone and iPad and I'm showing a picker in a actionsheet as follows:</p>
  
  <pre><code>actionSheet = [[UIActionSheet alloc] initWithTitle:@"Day / Month"
                                            delegate:self
                                   cancelButtonTitle:nil
                              destructiveButtonTitle:nil
                                   otherButtonTitles:nil];
  
  picker = [[UIPickerView alloc] initWithFrame:CGRectMake(0,40,0,0)];
  picker.delegate = self;
  picker.showsSelectionIndicator = YES;
  [actionSheet addSubview:picker];
  
  [actionSheet showInView:[UIApplication sharedApplication].keyWindow];
  [actionSheet setBounds:CGRectMake(0,0,320,469)];
  </code></pre>
  
  <p>This works well for iPhone, but for the iPad version with the same code and leaving aside those who are different dimensions gives me the following error:</p>
  
  <blockquote>
    <p><em>*</em> Terminating app due to uncaught exception
    'NSInternalInconsistencyException', reason: 'Invalid parameter not
    satisfying: view != nil'</p>
  </blockquote>
  
  <p>At this line:</p>
  
  <pre><code>[actionSheet showInView:[UIApplication sharedApplication].keyWindow];
  </code></pre>
  
  <p>I've tried with showInView:self.view , self.Window, self.view.superview but nothing...</p>
  
  <p>I want to know what gives that error and will not let me do it the same way... thanks in advance!</p>