UIViewController *viewController = [[UIViewController alloc] init];
UIView *view1 = [[UIView alloc] init];
[viewController.view addSubview:view1];
[view1 release];
如果我想释放 viewController;
[viewController release];
我需要在发布 viewController 之前手动发布 view1 吗?
UIView *view = (UIView *)[[viewController.view subviews] objectAtIndex:0];
[view release];
[viewController release];
我应该这样做吗?或者只是释放viewController?