ios开发swift中actionsheet的用法 从下面弹出
2014-12-28 14:56
176 查看
//注册账号的button - (IBAction)goRegisterVC:(id)sender { //用一个actionsheet UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:kNetPath_Code_Base delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"去Safari中注册", nil]; //actionsheet 从上向下 ID 0 慢慢增大 [actionSheet showInView:kKeyWindow]; // DebugLog(@"goRegisterVC"); // RegisterViewController *vc = [[RegisterViewController alloc] init]; // [self.navigationController pushViewController:vc animated:YES]; } #pragma mark UIActionSheetDelegate M - (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex{ if (buttonIndex == 0) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:kNetPath_Code_Base]]; } }
相关文章推荐
- iOS开发——ActionSheet的使用与弹出选择对话框
- 【IOS开发】swift的imageview的用法(加载图片,圆角,边框)
- 【IOS开发】swift版的AFNETworking之Alamofire的用法 图片上传
- iOS开发swift自定义AlertController弹出带有输入框后AertView
- iOS开发:Swift里正则表达式的正确用法(限制TextField的文本输入,登录时判断正确的手机号)
- 5.2 iOS开发视频教程—延展的基本概念和用法
- 【无限互联】iOS开发block用法之UIAlertView控件的修改
- iOS开发键盘弹出时遮住输入框的问题
- iOS开发 对话框UIActionSheet和UIAlertView用法
- iOS开发中nil和release的用法
- ios开发学习-弹出视图(Popup View) 效果源码分享--系列教程1
- 5.1iOS开发视频教程— 类目的基本概念和用法
- iOS 开发中使用正则表达式-暨 RegexKitLite 库的用法
- ios开发学习-弹出视图(Popup View) 效果源码分享--系列教程3
- ios开发学习-弹出视图(Popup View) 效果源码分享--系列教程4
- ios开发学习-弹出视图(Popup View) 效果源码分享--系列教程1
- iOS开发视频教程—6.1引用技术的基本概念和用法
- json的用法 SBJson的用法 IOS开发 iphone开发
- IOS开发中nil和release的用法
- IOS开发中nil和release的用法