だから私は、IBActionを表示するはずのボタンを持っていますsubview。はview絵コンテにあり、私はそれを と呼んでいinstantiateViewControllerます。これはうまくいきます。この問題が発生した画面へのビューの遷移をアニメーション化したいと思います。次のコードは私が持っているものですが、一度に全体viewを表示しますが、ボタンなどにテキストは表示せず、テキストを上から下にドラッグします。かなりあいまいです。行をコメントアウトsetAnimationTransitionすると、同じ結果が得られます。
MapViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"MapViewController"];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:MapViewController.view cache:YES];
[self.view addSubview:MapViewController.view];
[UIView commitAnimations];
誰にもアイデアはありますか?
あなたの助けに感謝します。
ありがとう。
以下のコメントに従って、次のように変更しました。
[UIView animateWithDuration:0.5 delay:0.0 options:UIViewAnimationOptionTransitionFlipFromRight animations:^{[self.view addSubview:MapViewController.view];} completion:NULL];
ただし、問題は引き続き発生します。