NSString *myString = @"i want first letter capitalized.";
NSString *newString = [myString stringByReplacingCharactersInRange:NSMakeRange(0,1) withString:[[myStringsubstringToIndex:1] capitalizedString]];
sdsadThis will give output of newString as I want first letter capitalized
No comments:
Post a Comment