Popover View Arrow moves when keyboard appears

I have a popover view with a search bar and a search bar delegate. When the popover view is displayed, it points the arrow to the button that I click to pull it out as expected. When the search box is selected and my view is pushed up, the arrow moves all the way to the bottom of the popover instead of pointing to the button that it should be attached to. If the keyboard deviates, the arrow moves back to where it should be in the middle of the pop-up window.

I can reject this popover and manually call another one with the arrow in the right place, but I feel like this is a terrible decision.

It is displayed in this way when the button is pressed.

[over presentPopoverFromRect:self.addCategoryButton.bounds inView:self.addCategoryButton permittedArrowDirections:UIPopoverArrowDirectionLeft animated:YES];
+5
source share
1 answer

let's say that the button is a preview for self.view. I assume that popover should be represented as follows:

[over presentPopoverFromRect:self.addCategoryButton.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionLeft animated:YES];
0
source

All Articles