读书人

iphone 弹出抉择对话框

发布时间: 2012-09-28 00:03:35 作者: rapoo

iphone 弹出选择对话框

//弹出选择框-(void)showOptionSheet{        NSString *title = [Comm str:@"option"];        UIActionSheet * dateSheet = [[UIActionSheet alloc] initWithTitle:title                                                                                              delegate:self                                                                                    cancelButtonTitle:[Comm str:@"passwordEdit"]                                              destructiveButtonTitle:[Comm str:@"PayPasswordEdit"]                                                                              otherButtonTitles:nil];    dateSheet.actionSheetStyle = self.navigationController.navigationBar.barStyle;    [dateSheet showInView:self.view];}-(void)actionSheet:(UIActionSheet*)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{    if (buttonIndex == 0) {           //@"PayPasswordEdit"    }else if (buttonIndex == 1) {       //@"passwordEdit"    }}

读书人网 >Iphone

热点推荐