Action sheet loads for 1st time with an space from the bottom of the screen?
<p>Action Sheet shows an space of height 20 to 30 pixels when the action sheet loads for the 1st time.
When I load the action sheet for the second time it loads properly.
Can anyone please help me in this situation?</p>

<hr>

<pre><code>- (void)viewDidLoad { 
    [super viewDidLoad]; 
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque animated:YES]; 
    [self loadImage:nil]; 
} 
</code></pre>

<p>When the view load i am calling the above event which is showing the space at the bottom of the page.</p>

<hr>

<p>and when i load it from the following function it is working fine... </p>

<pre><code>- (IBAction)loadImage:(id)sender { 
    if(!actionSheetAction) { 
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"" 
                                                                 delegate:self 
                                                        cancelButtonTitle:@"Cancel"     
                                                   destructiveButtonTitle:nil 
                                                        otherButtonTitles:@"Use Photo from Library", 
                                                                          @"Take Photo with Camera", nil]; 
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault; 
        actionSheetAction = ActionSheetToSelectTypeOfSource; 
        [actionSheet showInView:self.view]; 
        [actionSheet release]; 
    } 
}
</code></pre>
