내 ios 앱에서 검색 기능이 있습니다. 난 그냥 이런 식으로 사용자가 입력 한 문자열 및 대상 문자열을 비교 :많은 버튼을 탭할 때 UITextField가 실패했습니다.
if (!([name rangeOfString:searchText].location == NSNotFound) || !([description rangeOfString:searchText].location == NSNotFound))
을하지만 난 하나 개 이상의 버튼이 곳에서 내 응용 프로그램의 호감을 누를 때.
때로는이 오류가 :이이 오류에 대한
MyApp [2407:6bf7] -[__NSCFSet length]: unrecognized selector sent to instance 0x4f71c0
MyApp [2407:6bf7] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFSet length]: unrecognized selector sent to instance 0x4f71c0'
어떤 아이디어?
Thnx.
아마 메모리 누출 및 'UITextField'가 자동으로 재생됩니다. – Raptor