NSString *str1 = @"A. rahul VyAs";
NSString *newStr1 = [str1 substringWithRange:NSMakeRange(3, [str1 length]-3)];
NSLog(@"new str1 is %@",newStr1);
NSString *str = @"A. rahul VyAs";
NSString *newStr = [str substringFromIndex:3];
NSLog(@"new str %@",newStr);
output :new str1 is rahul VyAs
No comments:
Post a Comment