`

iOS seletor传参

    博客分类:
  • iOS
 
阅读更多
-(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);

}
  • dsa.zip (37.7 KB)
  • 下载次数: 0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics