tags:

views:

15

answers:

0

HI,

I used the autoroation its working fine in both Landscape and potrait but, I had a button in my navigation bar when I click on to the button an action sheet will generate.when I rotate the view into lanscape the action sheet is not rotating in lanscape mode.

The code that I used is below what's wrong I am not getting :

UIToolBar *__toolBar;

UIActionSheet *actionSheet;

actionSheet = [[UIActionSheet alloc] initWithTitle:@"" delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:@"Read",@" Unread", @"Cancel", nil]; actionSheet.actionSheetStyle = UIActionSheetStyleDefault;

[actionSheet showInView:self.view];
[actionSheet showFromToolbar:__toolBar];

[actionSheet release];

Please any one help me to solve this.

Thanks In advance.