In iOS 11, the view-hierarchy of UINavigationBars changed. Thus, the poptip and button to dismiss is not added on the superview of the UINavigationBar, but on the UINavigationBar instead.
This patch traverses the superviews of the UIBarButtonItem-view and tries to find the UINavigationBar and chooses its superview.
In iOS 11, the view-hierarchy of UINavigationBars changed. Thus, the poptip and button to dismiss is not added on the superview of the UINavigationBar, but on the UINavigationBar instead. This patch traverses the superviews of the UIBarButtonItem-view and tries to find the UINavigationBar and chooses its superview.