Tôi không biết tại sao dismissViewControllerAnimated:completion:
. Tôi chỉ muốn làm điều đó.Làm thế nào loại bỏ một viewController với storyboard từ một segue push?
Tôi bắt đầu với một
[self performSegueWithIdentifier:@"my_segue" sender:self];
Nhưng tôi gọi là sa thải hơn có gì xảy ra. Tôi có thể tạo ra một khoảng cách khác, nhưng nó tạo ra một bộ điều khiển xem mới.
Câu hỏi của tôi là: Cách loại bỏ performSegueWithIdentifier:sender:
?
Bạn nên tránh sử dụng 'dismissModalViewControllerAnimated:', như [tài liệu] (http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html) nói rằng đó là không được chấp nhận. 'dismissViewControllerAnimated: completion:' nên được sử dụng thay thế. –