Open inamiy opened 7 years ago
OK, I just solved it by adding empty titleView
as follows:
if (self.navigationItem.title == nil && self.navigationItem.titleView == nil) {
self.navigationItem.titleView = [[UIView alloc] init];
}
Thanks for posting a workaround and a sample code! I think this may be a bug in SloppySwiper. I haven't used it with a custom leftBarButtonItem
.
I'd investigate the logic in https://github.com/fastred/SloppySwiper/blob/master/Classes/SloppySwiper.m#L82-L107. There's also this separate issue (when not using SloppySwiper
) that may be somehow related: http://holko.pl/ios/2014/04/06/interactive-pop-gesture/
Hi!
This could be an UIKit bug (that is hard to fix), but I noticed an awkward navigationItem behavior as I wrote reproducing code below:
[Example] Reproduce navigationItem bug when leftBarButtonItem is set without title and sloppy-swiper cancelled
Step to reproduce
title
.ViewController
.NOTE
Bug won't reproduce if...
leftBarButtonItem
is not set, ortitle
is setIs there any workaround or fixes for this problem? (One idea might be to add a dummy transparent text 😵) Thanks!