开发者

Remove an object in NSMutableArray?

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜