UIBarButtonItem-Badge
UIBarButtonItem-Badge copied to clipboard
Status bar overlaps Badge
When the Button with badge is displayed on navigation bar for the initial loading time, it gets displayed correctly. But when navigate back to the screen from its child screens, it gets overlapped by the status bar !
I checked the frame of the BarButtonItem on both scenarios, but found it is the same !
A workaround for this is to make the following change in UIBarButtonItem+Badge.m
:
In badgeInit
change self.badgeOriginY = -4
to self.badgeOriginY = 0
.
This should prevent the badge from being high enough to get cut off. I couldn't easily figure out how to fix the actual cutoff issue.