//弹出选择框 -(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 弹出选择对话框 UIActionSheet
猜你喜欢
转载自zheyiw.iteye.com/blog/1679722
今日推荐
周排行