好吧,這就是我在做什麼。釋放已分配UIViews的NSMutableArray是否會釋放UIViews?
NSMutableArray *array = [[NSMutableArray alloc] init];
UIView *tempview = [[UIView alloc] initWithFrame:CGRectMake(15, 30, 320, 460)];
[array addObject:tempView];
UIView *tempview2 = [[UIView alloc] initWithFrame:CGRectMake(15, 30, 320, 460)];
[array addObject:tempView2];
[array release];
請問是否釋放數組,釋放兩個已分配的UIViews?
作爲一個側面說明,意見將在這種情況下,的確可以與陣列的最終版本發佈。 – 2011-05-05 19:59:49