問題概述:項目h5有跳轉二級頁面,當時發(fā)現(xiàn)在二級頁面點左上角返回會直接回到根控制器,解決方法如下:
重寫返回事件
-(BOOL)navigationShouldPopOnBackButton{
if ([_webView canGoBack]) {//_webView 你的webView
[_webView goBack];
}else{
[self.view resignFirstResponder];
[self.navigationController popViewControllerAnimated:YES];
}
return false;
}
??哪里不明確請?zhí)釂?/p>