Đây là mã của tôi. Tôi muốn đặt một nút quay lại trên rootviewController mở.Cách hiển thị nút quay lại trên RootViewController của UINavigationController?
- (void)selectSurah:(id)sender {
SurahTableViewController * surahTableViewController = [[SurahTableViewController alloc] initWithNibName:@"SurahTableViewController" bundle:nil];
[email protected]"Surah";
s[email protected]"Back";
UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:surahTableViewController];
[self presentModalViewController:aNavigationController animated:YES];
}
Để quay lại vị trí? – jarryd
Câu trả lời là hiển nhiên. quay lại nơi hiện tạiModalViewController được gọi. Xem câu trả lời @Flex_Addicted bên dưới. – shaikh