-2
如何将我的NSDictionary作为参数发送给我的选择器,以及如何读取它?发送NSDictionary作为@selector中的参数
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);
}
看来你没看过的文档,或者至少你没看仔细足够了... – 2013-08-21 20:25:46