문자열 검색 (특정 문자 찾기) string 데이터에서 특정 문자열을 찾는 방법입니다. NSString *str = @"hi there"; NSRange strRange; strRange = [str rangeOfString:@"there"]; if (strRange.location != NSNotFound) {NSArray *myWords = [str componentsSeparatedByString:@"i"]; NSString *str1 = [myWords objectAtIndex:1];} str 변수로 선언된 NSString에서 "there" 라는 문자열이 있는지 확인하는 방법입니다.