标签:geo rom span substring dex otf pre min bsp
1 NSString *tmpStr = @"asd341234aaaaccd"; 2 3 NSRange range; 4 5 range = [tmpStr rangeOfString:@"ccd"]; 6 7 if (range.location != NSNotFound) { 8 9 NSLog(@"found at location = %lu, length = %lu",(unsigned long)range.location,(unsigned long)range.length); 10 11 NSString *ok = [tmpStr substringFromIndex:range.location]; 12 13 NSLog(@"%@",ok); 14 15 }else{ 16 17 NSLog(@"Not Found"); 18 19 }
标签:geo rom span substring dex otf pre min bsp
原文地址:http://www.cnblogs.com/crazygeek/p/6094615.html