IOS学习笔记之十:IOS重点内容 Delegate的理解
来源:互联网 发布:php网站访问量统计代码 编辑:程序博客网 时间:2024/05/22 15:46
关于delegate,我想谈一谈做一个类似于UIAlertView的UIView的过程
1.首先创建了一个NotificationView,添加了delegate代码如下:
@protocol NotificationDelegate<NSObject>
@optional
-(void) clickButtonAtIndex:(int)indexOfButton OnView:(UIView*) notificationView;
@end
@interface NotificationView :UIView
...
@property (weak,nonatomic)id<NotificationDelegate>delegate;
...
@end
2.因为这种方法太过于繁琐,所以不再赘述,更好用的一种方法是用block来做简单的回调。 0 0
- IOS学习笔记之十:IOS重点内容 Delegate的理解
- iOS学习笔记6-delegate的使用
- 【iOS初级】delegate的理解
- iOS 开发学习之 delegate
- ios学习笔记之十--center和bounds的使用
- [iOS总结]delegate的学习
- IOS - 理解委托 - delegate
- iOS学习笔记-----使用代理(Delegate)的页面传值
- ios中的delegate的理解运用
- 关于delegate 与 protocol 的理解 iOS
- 关于iOS Delegate的个人理解
- 对iOS 中自定义delegate的理解
- 关于IOS delegate回调的理解
- IOS -- Delegate委托 的 使用与理解
- 关于delegate 与 protocol 的理解 iOS
- iOS学习笔记3---delegate五步曲,轻松学会使用delegate
- IOS学习笔记之十三:AppDelegate的理解
- IOS学习笔记之十六:NSInvocation的理解和使用
- Regular Expression Matching
- Linux下Kill函数用法
- C++ primer 笔记
- Python宝典第23章:多线程编程
- leetcode 二分查找 Search in Rotated Sorted Array
- IOS学习笔记之十:IOS重点内容 Delegate的理解
- uWSGI + Nginx 部署
- java大数
- OnOK()、OnCancel()、OnClose()、OnDestroy()之间的区别归纳
- IOS StoryBoard视图切换传值
- LBP特征提取
- 第一次使用CSDN博客,Hello World!
- 【转载】单独监控系统负载脚本
- 接口的隐式和显示实现