此問題已發佈多次,但是,我找不到我的方式有什麼問題。我想簡單地推UIView
編程:以編程方式在視圖之間切換
UINavigationController *navController = self.navigationController;
[navController popViewControllerAnimated:YES];
WebViewDisplayer *webViewDisplayer = [[WebViewDisplayer alloc] init];
webViewDisplayer.view.backgroundColor=[UIColor redColor];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration: 0.65];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:navController.view cache:YES];
[navController pushViewController:webViewDisplayer animated:YES];
[UIView commitAnimations];
我有一個名爲UIViewController
這WebViewDisplayer
我想移動到它的代碼,但似乎我的代碼沒有過渡響應。感謝提前幫助。