내가 UISearch를 사용하여 필터링하려고를 필터링하고 나는있는 NSArray를 필터링 할 때 다음과 같은 오류가 발생 : 뭔가 문자열 작업을 수행 할 수 없음UISearch 자 NSPredicate가있는 NSArray
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF beginswith[cd] %@", searchText];
self.searchResults = [self.pnldArray filteredArrayUsingPredicate:predicate];
를 사용하여 문자열
아니라고
배열
(
(
"Section 4 - H15, H19, H26, H42, H43 and H44",
"Section 5 - H21, H25 and H34"
),
(
"Section 149(1) - H5487",
"Section 149(1) - H5491"
),
(
"Section 146(1) - H5472",
"Section 147(1) - H5477"
),
pnldArray가 문자열 배열이 아닌 것처럼 들리는가요? –