UISwitch* view = [[UISwitch alloc] init];
NSMutableDictionary* controls = [[NSMutableDictionary alloc] init];
[controls setObject:value forKey:[NSValue valueWithNonretainedObject:view]];
value = [controls objectForKey:[NSValue valueWithNonretainedObject: view]];
No comments:
Post a Comment