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);

}

猜你喜欢

转载自wjg-java.iteye.com/blog/2257824
今日推荐