//弹出选择框
-(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
最新推荐文章于 2020-07-16 13:47:39 发布