UIpopover tooltip navigation bar

I have a navigation controller, like a popover view, so there is a navigation bar at the top.

In the first view, there is no tooltip for the navigation bar, so it remains its usual small size.

Then I click on the next view controller that needs a prompt, and the panel expands, except for the view, hiding the Title and Back buttons.

If I comment on the code in loadView so that self.view will never be set, then you can see the tooltip and title, but you cannot click the back button, as if it were behind a different view.

I never had this problem in 3.2, only now in 4.2

+4
source share
1 answer

Here you can set the size of the popover using the following code:

self.contentSizeForViewInPopover = CGSizeMake(320, 460); 

You need to set the size of the popover content in the field of view using this code, and you can add this code to the controller’s viewdidLoad mehtof. Let me know if you still have a question.

0
source

Source: https://habr.com/ru/post/1336568/


All Articles