//弹出选择框
-(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"
}
}
分享到:
相关推荐
LQPopUpView *popUpView = [[LQPopUpView alloc] initWithTitle:@"提示" message:@"这是用第一种初始化方法创建的弹出视图"]; [popUpView addBtnWithTitle:@"取消" type:LQPopUpBtnStyleCancel handler:^{ //...
Android 仿iPhone UIActionSheet控件效果很好用类似qq上传头像前的选择控件
多功能选择器UIActionSheet,仿微信ActionSheet,还有其他样式改变,满足各种需求
UIActionSheet demo23456789
这个源码是自定义弹出视图UIActionSheet,源码LZWActionSheet,用了IOS8之后发现之前别人写得自定义UIActionSheet 不能正常显示了,于是我就自己写了一个,分享给大家 请用xcode 6.0.1 编译测试 记得使用的时候算好...
UIActionSheet示例代码,IOS 开发总结
IOS自定义UIActionSheet的例子,供大家学习
android 仿ios 下面弹出列表 模仿IOS里面的UIActionSheet控件
MMActionSheet 是一个简单的弹出选择框,使用纯swift编写,类似于微信(或支付宝)里面的`ActionSheet`控件。 源码地址(具体用法):https://github.com/MinMao-Hub/MMActionSheet 博客地址(使用方法以及具体参数...
高仿微信ActionSheet,使用和UIActionSheet基本相同,代码有不足,仅供参考。
ActionSheetPicker = UIPickerView + UIActionSheet
以前在网上下了个时间选择器Demo,由于封装成UIActionSheet类型,而ios8弃用了UIActionSheet和UIAlertView,不得不对代码进行修改。将封装的UIActionSheet改为UIView,为了多态初始化时添加了枚举(几个时间选择器...
创建登陆窗口(有用户名和密码),确认后弹出对话框再输入一遍,如果都相同,显示用户图片,如果不相同,弹出上拉菜单(UIActionSheet),问是否重新输入,是的话弹出对话框重新输入。
IOS:创建登陆窗口(有用户名和密码),确认后弹出对话框再输入一遍,如果都相同,显示用户图片,如果不相同,弹出上拉菜单(UIActionSheet)_,问是否重新输入,是的话弹出对话框重新输入。
ios应用源码之仿uialertview和uiactionsheet的一个效果
IOS基础UI之(五)UIAlertView、UIActionSheet和UIAlertController详解 代码
Android高仿iOS(UIAlertView和UIActionSheet)各种弹出框效果,包括单选提示框、双选提示框、弹出列表等等,亲测可用。
简单的自定义UIActionSheet
iOS 自定义弹出菜单 UIMenuBar ,UIMenuBar 是一个 iOS 自定义弹出菜单,用于替换内置的 UIActionSheet,支持...
普通的列表对话框,使用简单,功能强大,可以自定义和强大,就像IOS中的UIActionSheet ##用 // Initialize an array of characters List< String> list = new ArrayList<> ( 3 ); list . add( " Send message ...