移除最后一个对象的NSMutableArray
问题描述:
有没有,为什么删除最后一个对象的NSMutableArray没有崩溃的应用程序? :D
Is there any why to remove last object in NSMutablearray without crashing app? :D
答
当然:发送 removeLastObject
消息到一个有效的的NSMutableArray
对象,它是不是空的。
Sure: send the removeLastObject
message to a valid NSMutableArray
object which is not empty.