Created
May 9, 2013 14:12
-
-
Save sergiosvieira/5547664 to your computer and use it in GitHub Desktop.
This file contains 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
for (NSUInteger i = 0; i < [info.allKeys count]; i++) | |
{ | |
NSString *field = info.allKeys[i]; | |
SEL setField = NSSelectorFromString([NSString stringWithFormat:@"set%@", field]); | |
if ([newUser respondsToSelector:setField]) | |
{ | |
#pragma clang diagnostic push | |
#pragma clang diagnostic ignored "-Warc-performSelector-leaks" | |
[newUser performSelector:setField]; | |
#pragma clang diagnostic pop | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment