i found UINavigationBar.height = 56
in iOS11 but UINavigationBar.height = 44
in lower than iOS 11.
my code is here:
UIBarButtonItem *scanButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"scan_code"] style:UIBarButtonItemStylePlain target:self action:@selector(pushScanController)];
self.navigationItem.leftBarButtonItem = scanButton;
there is a location bug in iOS11.
As shown in figure:
How can I fix this bug?