[英]iPad keyboard will not dismiss if modal ViewController presentation style is UIModalPresentationFormSheet
[英]Dismiss a viewController from 2 modal presentation to especific viewController
創建一個委托方法,當您關閉VC3時將調用該方法,因此當委托傳遞給VC1時,請按VC2
嘗試這個 :-
NSMutableArray *navigationArray = [[NSMutableArray alloc] initWithArray: self.navigationController.viewControllers];
// [navigationArray removeAllObjects]; // This is just for remove all view controller from navigation stack.
MyFansViewController *vc3 = [[MyFansViewController alloc] init];
[navigationArray removeObjectAtIndex: 2]; // You can pass your index here
[navigationArray addObject:vc3];
self.navigationController.viewControllers = navigationArray;
我還沒有測試過,但是經過一些修改它就可以工作
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.