4
我有這樣的代碼:查看過渡動畫
- (void) displayView:(int)intNewView{
NSLog(@"%i", intNewView);
[currentView.view removeFromSuperview];
[currentView release];
switch (intNewView) {
case 1:
currentView = [[EnterView alloc] init];
break;
case 2:
currentView = [[MainMenuView alloc] init];
break;
case 3:
currentView = [[DetailsView alloc] init];
break;
case 4:
currentView = [[PhotosView alloc] init];
break;
case 5:
currentView = [[CustomUITableViewViewController alloc] init];
break;
}
[self.view addSubview:currentView.view];
}
此代碼成功轉換的觀點,但它不是很壯觀,你可以想像(視圖根本沒有動畫切換)。我想知道是否有一種簡單的方法來添加任何類型的簡單視圖過渡動畫在這裏?我無法弄清楚如何實現我在網上找到的任何示例。任何動畫就足夠了,只是一些香料的東西有點:)
感謝,
傑克
非常感謝,那就是我所需要的。 :) – 2011-05-23 00:38:06
如何將其刪除? :)在相同的風格 – 2013-07-16 07:01:22