tags:

views:

100

answers:

2

Hi, i am new to iphone...i have coded in viewdidload

-(void)viewDidload
{
     actSheet = [[UIActionSheet alloc] initWithTitle:@"How"
        delegate:self
               cancelButtonTitle:@"ok"                
                                       destructiveButtonTitle:nil
        otherButtonTitles:nil];
}

when one button is pressed, i coded like

[actSheet showInView:self.view];

but, the screen is full like locked,i could not do nothing....anyhelpplease?

A: 

Where is your

- (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex

?

mahboudz
+1  A: 

At minimum you must implement the UIActionSheetDelegate method – actionSheet:clickedButtonAtIndex: in the object you have set as delegate (self). The sheet is automatically dismissed after the method is invoked.

Adam Eberbach