iOS seletor傳參

-(void)ss{
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];



[dict setObject:@"dd" forKey:@"oldView"];



[dict setObject:@"ff" forKey:@"newView"];

id dic= dict;

// [NSTimer scheduledTimerWithTimeInterval:0.0 target:self selector:@selector(onTimer:) userInfo:dict repeats:NO];
[self action:@selector(o:) sol:@"000"];


}

-(void)action:(SEL)l sol:(NSString*)name{
id i = name;
[self performSelector:l withObject:@"eee"];
}
-(void)p:(id)d{
NSLog(@"ddd");

}

-(void)o:(id)name{
NSLog(@"====%@",name);

}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章