Return to Snippet

Revision: 35109
at November 2, 2010 19:01 by tenveer


Updated Code
NSString *str = @"i.am.Tanveer";
int stringLength = [str length];
NSRange range = NSMakeRange(0, stringLength);
NSString *newStr = [str stringByReplacingOccurrencesOfString:@"a" withString:@"e" options:NSCaseInsensitiveSearch range:range];

Revision: 35108
at November 2, 2010 19:00 by tenveer


Initial Code
NSString *str = @"i.am.Tanveer";
int stringLength = [str length];
NSRange range = NSMakeRange(0, stringLength);
NSString *newStr = [str stringByReplacingOccurrencesOfString:@"o" withString:@"0" options:NSCaseInsensitiveSearch range:range];

Initial URL

                                

Initial Description

                                

Initial Title
Remove a character from string within a range

Initial Tags

                                

Initial Language
Objective C