2016-05-17 10 views
1

次の方法で2つのView Controller間でモーダルに遷移しますが、UIModalTransitionStyleCrossDissolveを使用してフェードインしようとしていますが、iphone- 6S、私header.Can誰でもインポートのUIKitは私がUIModalTransitionStyleCrossDissolveで遷移すると、IOS Sdkのiphone6sでエラーが発生する9.3

BoookingVC* nextController=[self.storyboard instantiateViewControllerWithIdentifier:@"BoookingVCID"]; 
nextController.userId=userId; 
nextController.customerId=customerId; 


nextController.providesPresentationContextTransitionStyle = YES; 
nextController.definesPresentationContext = YES; 

nextController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; 
[nextController setModalPresentationStyle:UIModalPresentationOverCurrentContext]; 
[self.navigationController presentViewController:nextController animated:YES completion:nil]; 

をやっているのミスについての手がかりを与えることが

答えて

0
i「は内部宣言の曖昧の使用を」understand-することはできませんよ、次の警告が表示さ

私はあなたのストーリーボード名でUIStoryboardオブジェクトを正しく作成しなければならないと思います。

UIStoryboard *StoryboardObj = [UIStoryboard storyboardWithName:@"yourStoryboardName" bundle:nil]; 
BoookingVC* nextController=[StoryboardObj instantiateViewControllerWithIdentifier:@"BoookingVCID"]; 
+0

おかげで、しかし、問題はまだあなたがストーリーボードを使用してセグエを作成し、コードでデリゲートメソッドを使用してプログラムのすべてがカスタム設定とトリガセグエを設定することができ、同じ...( –

+0

@SaurabhSaini残る_ [自己performSegueWithIdentifier:myidentifier "@ "送信者:自己]; _ – vaibhav

+0

か、この[リンク](http://stackoverflow.com/a/37114648/4003548)を使用してdiffビューコントローラーを切り替えることができます。 – vaibhav

関連する問題