【发布时间】:2013-08-21 20:22:51
【问题描述】:
如何将我的 NSDictionary 作为参数发送到我的选择器上,以及如何读取它?
NSDictionary * dict = [[NSDictionary alloc]initWithObjectsAndKeys:@"idOferta",@"test", nil];
NSThread * viewsThread = [[NSThread alloc] initWithTarget:self selector:@selector(updateViewStatistic:) object:dict];
[viewsThread start];
- (void)updateViewStatistic:(NSThread *)mt {
NSLog(@"dictionary %@",dict);
}
【问题讨论】:
-
看来你没有看文档,或者至少你看的不够仔细……
标签: ios objective-c dictionary selector nsthread