我想添加動畫的子視圖。我使用添加子視圖,它沒有顯示任何動畫,所以我想表明,當我這樣做的任何動畫...我使用下面的代碼: -顯示動畫時addsubview
UIViewController *vControllerHome = [[viewTemp alloc] initWithNibName:@"viewTemp" bundle:nil];
vControllerHome.view.frame =CGRectMake(0, 0, 320, 414);
[self.view addSubview:vControllerHome.view];
self.selectedViewController = vControllerHome;
任何一個可以建議我怎麼做?
並刪除子視圖? – djskinner 2012-08-15 11:47:26
要刪除子視圖,請使用相同的代碼,但替換[containerView addSubview:subview];與[self.view removeFromSuperview]; – rmooney 2014-05-13 19:50:05