這會照顧在ARC在安裝iOS 5.0或iOS 5.1這會照顧內存管理ARC
我正在分配的對象和不需要釋放ARC該對象,這些ARC照顧自己
UIView *customView = [[UIView alloc]init];
[customView setFrame:CGRectMake(kRect)];
[self.view addSubview: customView];
[customView release];
在ARC customView發佈中,它將自行處理。
如果我說釋放customView
閱讀文檔! – 2012-06-25 14:08:08