Created
July 27, 2014 20:13
-
-
Save chivalry/03f6ca1269efc69fbd41 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
- (NSString *)titleCaseToCamelCase { | |
NSString *string = [self capitalizedString]; | |
string = [string stringByReplacingOccurrencesOfString:@" " withString:@""]; | |
string = [NSString stringWithFormat:@"%@", string]; | |
return [string stringByReplacingCharactersInRange:NSMakeRange(0, 1) | |
withString:[[string substringToIndex:1] | |
lowercaseString]]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment