Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要传递多个参数NSTimer userinfo,我将多个参数设置为 anNSDictionary并传递NSDictionary. 我的问题是我们如何将UIButton对象存储到NSDIctionary?
NSTimer
userinfo
NSDictionary
UIButton
NSDIctionary
NSMutableDictionary * myDic = [[NSMutableDictionary alloc]init]; [myDic setObject:myButton forKey:@"button"];
访问它如下:
[myDic objectForKey:@"button"];
希望这会帮助你。