Tôi có một bộ điều khiển xem tab trong đó có một nút như vậy và khi nó được ép một phương thức xuất hiện:Đẩy một bộ điều khiển chuyển hướng sau khi một bộ điều khiển xem phương thức được trình bày
PostViewController *post = [[PostViewController alloc] init];
// [self.navigationController pushViewController:post animated:YES];
// Presentation
[self presentViewController:post animated:YES completion:nil];
Khi phương thức được thực hiện tôi muốn loại bỏ nó và đẩy một bộ điều khiển chế độ xem mới như vậy:
ProfilesViewController *profile = [[ProfilesViewController alloc] init];
[self.navigationController pushViewController:profile animated:YES];
Nhưng tôi không thể làm điều đó trong bài vc như một phương thức. Làm thế nào để tôi làm điều này?
Tại sao bạn cần trình bày điều gì đó và loại bỏ nó trước khi xuất hiện? – EridB
Tôi không làm điều đó – cdub