Created
October 29, 2013 10:04
-
-
Save jlcampana/7211873 to your computer and use it in GitHub Desktop.
meter un selector en un nsdictionary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEL inSelector = @selector(something:); | |
NSString *selectorAsString = NSStringFromSelector(inSelector); | |
id dict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:@"some text", @"text", selectorAsString, @"selector", nil]; | |
// Retrieve selector | |
SEL outSelector = NSSelectorFromString([dict objectForKey:@"selector"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment