最近在項目開發過程當中:主頁調用了H5作的頁面,在標題欄左側添加後退按鈕:code
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"goback.png"] style:UIBarButtonItemStylePlain target:self action:@selector(leftGoBack)]; self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];
在H5頁面後退的過程當中有時會出現空白頁,連接地址爲:「about:blank」開發
解決方法:在頁面CSS文件中去掉頁面中點擊連接的特效get
關注新平臺:http://www.toutiao.com/m51416718261/ 關注訂閱號:從小就壞it