【iOS】UIAlertView 点击跳转事件
2015-11-01 16:53
495 查看
iOS 开发中,UIAlertView 经常用到。这里记录下曾用到的点击跳转事件。
UIAlertView 的点击事件(点击后跳转到其他页面):
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"提示" message:@"退出" delegate:self cancelButtonTitle:@"确认" otherButtonTitles:nil]; if ([@"请记住新密码" isEqualToString:result.msg]) { alert.tag=1; } [alert show];
UIAlertView 的点击事件(点击后跳转到其他页面):
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if (alertView.tag == 1) { [self.navigationController popViewControllerAnimated:YES]; } }
相关文章推荐
- uIP使用记录
- [sicily]1443. Printer Queue
- UIScrollView 侧滑的手势冲突怎么解决?
- request.getRequestDispatcher()的两个方法forward()/include()!!!
- EasyUI - DataGrid 组建 - [ 搜索功能 ]
- hdu 5538 House Building 基础题
- easyui-datagrid的一些操作记录
- hdu1297 Children’s Queue (动态规划,n个人排成一列的方案数+高精加)
- 消息队列机制messageQuene
- queue的用法
- requirejs项目部署
- required定义
- OC 学习笔记4 NSSet NSMutableSet NSDictionary NSMutableDictionary NSNumber NSValue
- [Chromium官方博客文章转载]Jank Busters Part One(UI Jank指的是界面来不及刷新导致的卡塞空白现象?
- ros_fuerte创建工作空间、创建ROS功能包、编译ROS功能包、创建节点(cpp)、编译节点、使用launch文件、创建srv和msg文件、使用新建的srv和msg文件
- new Integer(text).intValue()的用法
- InterView common question
- ios学习之苹果官方文档的学习(UIFocusUpdateContext方面)
- hadoop 之 InputFormat类 --- KeyValueTextInputFormat 实例
- Codeforces Round #328 (Div. 2) B. The Monster and the Squirrel 打表数学