IOS: people picker inside UIPopoverController, search keyboard distorts popover

I have a people picker inside a UIPopoverController, since it has a search field that calls up the keyboard when pressed, then I got this ugly result:

People picker inside UIPopoverController

the popover UP arrow that looks best in my application, I also tried using UP | DOWN, but it does not work (still always UP), I know that instead I can only use the DOWN arrow, but this should be the last solution. I wonder if there is any way to handle this?

Thanks!

update: I thought I could use the BBC arrow first, and then when the search box answers first (not sure how to find this), I change it to the DOWN arrow (also not sure how to do this)?

update 2: also the view is not a table or something that can be scrolled, so I cannot scroll the view to make the popover look good.

+6
source share
1 answer

You are right, this is a pretty ugly resolution.

The problem is that the UIPopoverController encoded to avoid keyboard layouts.

I think the only way around this is to either create a custom UIPopoverController that ignores the appearance of the keyboard (I believe some listeners should be disabled on SharedApplication or on the main screen) or create a custom UIView that contains this.

0
source

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


All Articles