Quick Links

Problem reliably giving focus to a picker from a button click handler on iOS.

I have a button on a form in a PCL-based iOS app which when clicked should display a pre-populated picker by giving it focus from the button click handler. It works sometimes but not always, is there a reason for this? I've used the same technique to display a datepicker and it works 100% of the time so I'm wondering why the picker is hit and miss? A forum search revealed a couple of related questions but not an answer/solution that was confirmed as working. Can anyone explain why I'm seeing this issue and/or offer a solution? Thanks.

Actually I was trying to use a Label and TapGesture myself (not a Button, my mistake) so I was experiencing the same issues as you, I guess. I have now changed it to a button (made to look like a Label) and it's working great! Thanks for your reply.