導覽列切換時出現bug。重現方式:在app裡點來點去,可能會出現。
當出現該bug時,從首頁進入任何帶有導覽列的頁面都會出現此問題。
//项目中使用了下面这个category
#import "UINavigationController+FDFullscreenPopGesture.h"
//自定义首页导航栏的代码
//left item
UIButton *leftItem = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 14)];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:leftItem];
//title view
UIImageView *titleImage = [[UIImageView alloc] initWithImage:IMAGE(@"乡味汇横版")];
self.navigationItem.titleView = titleImage;
//right item
UIImageView *rightItem = [[UIImageView alloc] initWithImage:IMAGE(@"消息")];
[rightItem addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(showMessage)] ];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:rightItem];
//UINavigationController+FDFullscreenPopGesture原始碼連結
仅有的幸福2017-05-02 09:31:07
你好 請問你的問題解決了嗎?我也遇到了類似的問題。請示你是不是隱藏導覽列然後自訂了?我是因為這樣操作而導致的。我還不知道怎麼優化呢?請問你是怎麼處理得呢?