NSCFString countByEnumeratingWithState:objects:count: ERROR while searching NSMutableArray

前端 未结 1 1295
攒了一身酷
攒了一身酷 2020-12-10 22:05

I have the following situation where I have an NSMutableArray filled with an xml file which I want to search. When I enter something in the search

1条回答
  •  天命终不由人
    2020-12-10 22:40

    it means you are calling a method designed for an NSArray (countByEnumeratingWithState:objects:count on a NSString.

    I don't know ifthis code is copy/paste from yours, but if so, at the end where you use [searchList addObject:TempArray] you don't have an object named searchList.

    Also, work on your naming conventions. big time.

    0 讨论(0)
提交回复
热议问题