通过NSTimer看IPhone对@selector的函数如何传参数
来源:互联网 发布:桥接网络 编辑:程序博客网 时间:2024/05/21 10:25
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
{
{
- (void)onTimer:(NSTimer *)timer
{
}
从上可以看出,NSTimer在对@selector(onTimer:)传递参数时,将传参的对象储存在了NSTimer的userInfo的字典里,在- (void)onTimer:(NSTimer *)timer中
通过取出该字典加以使用。
这个其实也就是iphone对@selector对象传参的通用的形式。
http://blog.csdn.net/likendsl/article/details/7549955
- 通过NSTimer看IPhone对@selector的函数如何传参数
- 通过NSTimer看IPhone对@selector的函数如何传参数
- 通过NSTimer看IPhone对@selector的函数如何传参数
- 通过NSTimer看IPhone对@selector的函数如何传参数
- 通过NSTimer看IPhone对@selector的函数如何传参数
- IPhone对@selector的函数如何传参数
- @selector的函数如何传参数/如何传递多个参数
- c++中如何通过函数参数对指针进行赋值
- c++中如何通过函数参数对指针进行赋值
- iphone中如何创建一个定时器NSTimer
- 如何看iPhone是哪个国家的
- 通过比较看联通iPhone错误的定位
- iOS之@selector的函数传递多个参数
- iOS之@selector的函数传递多个参数
- iOS之@selector的函数传递多个参数
- iOS之@selector的函数传递多个参数
- 如何通过Makefile编译iphone的openSSL
- 如何通过Makefile编译iphone的openSSL
- 链表
- android:screenOrientation属性
- Android XML文件使用
- iOS 之视频拍摄和压缩
- 正则表达式中各种字符的含义
- 通过NSTimer看IPhone对@selector的函数如何传参数
- 链表2
- SAP F4搜索帮助的高级版
- iOS 之视频压缩
- 正则表达式30分钟入门教程
- Cocos2dx - -播放声音和音效的实现
- iOS 之KVO简介
- spring mvc简单的demo
- iOS 之KVC简介