I have added a custom titleView
to my UINavigationItem
, and that contains a view that is intended to be under the status bar. It looks fine, and when I push another viewcontroller and that transitions away in the standard right-to-left animation it looks fine. However, when I [self.navigationController popViewControllerAnimated:YES]
it clips the top of this view until the animation is finished. Please see attached image for a better explanation of the problem.
It's only until after the pop-animation is done that it looks normal again. I have tried everything I can think of. Setting cropsToBounds
to NO
on all the views the viewController
AND navigationBar
. I've tried also layer.masksToBounds
and just about every property that sounds familiar. I've added a timer that prints the frame rectangle of the navigationBar and the custom titleView
and it doesn't appear that they change anything.
Does anybody know what I'm doing wrong?