当前位置: 代码迷 >> Iphone >> iphone 弹出抉择对话框
  详细解决方案

iphone 弹出抉择对话框

热度:19   发布时间:2016-04-25 06:19:16.0
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"    }}
  相关解决方案