I have a NSMutableArray like this:
NSMutableArray *array =...; (array contain my custom object)
NSMutableArray *toRemove = [array getObjectsToRemove];
But when I try to call removeObjectsInArray ( [array removeObjectsInArray:toRemove]; ) it breaks my app! Can anybody 开发者_运维知识库tell me how to solve my problem :(
I expect the error you are getting is "[NSMutableArray getObjectsToRemove] unrecognized selector sent to.."
NSMutableArray does not have such a method.
That's as far as I can answer without a bit more information, like the actual error message and the code for getObjectsToRemove (wherever it is defined).
精彩评论