iOS学习笔记---UIAlertView 使用及代理
来源:互联网 发布:自定义域名邮箱 编辑:程序博客网 时间:2024/06/07 18:04
UIAlertView信息提示框:
[[[UIAlertView alloc] initWithTitle:@"Title" message:@"message" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", @"你猜", nil] show];
代理方法(UIAlertViewDelegate):
// Called when a button is <span style="color:#ff0000;">clicked</span>. The view will be automatically dismissed after this call returns- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;// Called when we <span style="color:#ff0000;">cancel</span> a view (eg. the user clicks the Home button). This is not called when the user clicks the cancel button.// If not defined in the delegate, we simulate a click in the cancel button- (void)alertViewCancel:(UIAlertView *)alertView;- (void)willPresentAlertView:(UIAlertView *)alertView; // before animation and showing view- (void)didPresentAlertView:(UIAlertView *)alertView; // after animation- (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex; // before animation and hiding view- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex; // after animation// Called after edits in any of the default fields added by the style- (BOOL)alertViewShouldEnableFirstOtherButton:(UIAlertView *)alertView;
0 0
- iOS学习笔记---UIAlertView 使用及代理
- ios学习笔记:UIAlertView的使用
- ios学习笔记 UIAlertView
- 【iOS学习笔记】UIalertview
- iOS开发-UIAlertView
- iOS学习笔记4-UIAlertView
- iOS界面编程-UIAlertView
- Swift开发IOS-UIAlertView
- iOS学习笔记—— UIAlertView 和 UIActionSheet 的使用
- ios学习笔记:UIAlertView使用和监听点击事件
- ios学习笔记(二)--代理设计模式
- 【学习笔记】IOS(1)之UIAlertView
- 二十三 ,iOS UIAlertView使用block来实现代理方法;
- UIAlertView的各种属性、方法及代理的使用
- UIAlertView的各种属性、方法及代理的使用
- UIAlertView的各种属性、方法及代理的使用
- UIKit框架-05.UIAlertView使用
- iOS 代理-协议的代码笔记
- [综合面试] 牛人整理分享的面试知识:操作系统、计算机网络、设计模式、Linux编程,数据结构总结
- 同余问题之模方程模板
- linux 下查看机器cpu是几核的
- Cocos2d-x 3.1.1 学习日志17--移植出现error C1083: 无法打开包括文件:“extensions/ExtensionMacros.h”: No such file or
- 不痛不痒之热血青年《一》
- iOS学习笔记---UIAlertView 使用及代理
- centos系统上程序打包
- Qual F&Q
- UVa-10815-Andy's First Dictionary
- C++primer学习笔记《4》
- 数据结构之二叉搜索树
- CentOS 6.3的U盘安装方法
- 自定义dialog,非常方便复用
- ACM书籍推荐