0
私は5つのアイテムを持つtabbarViewControllerを持っています。 didSelectItem方法:tabbarアイテムをポップビューコントローラのようにするinstagram
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item {
UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
CreateViewController *dest = [storyBoard instantiateViewControllerWithIdentifier:@"CreateNewRecipe"];
if (item.tag == 1) {
[self presentViewController:dest animated:YES completion:NULL];
}
私はtabbarControllerクラスで、私は
タブバーでUITabbarDelegateを使用するので、(InstagramののテイクImageボタンのような)新しいのViewControllerに第三項目のポップを作りたい ![enter image description here](https://i.stack.imgur.com/qIkSQ.png)
しかし、私が提示したビューコントローラでは、dismissViewControllerAnimated:完了:(ボタンアクションで)戻るには、"NaviOfCreateViewController"に戻ります。 :
私はちょうど私が第三TabBarの項目をクリックする前にすることをTabbarControllerに引き返すいたいです。私を助けるどんな解決策ですか?ありがとうございました。