假設我有一個NSMutableArray *sasquatch
,它有一些數組。當您使用數組調用方法removeAllObjects時會發生什麼?
在ARC中,如果我調用[sasquatch removeAllObjects];
是否會導致sasquatch數組中的所有數組爲零?這樣sasquatch數組中的對象也被全部刪除,並且處理了一些東西?
因爲我不知道我是否應該這樣做:
for (NSArray *animalPlanetSearchingFor in sasquatch){
[animalPlanetSearchingFor removeAllObjects];
}
之前,我打電話[sasquatch removeAllObjects];
你爲什麼不試試看? – Bot 2012-08-14 21:50:13
@Bot我會嘗試吧! – bmende 2012-08-14 22:49:22