Re: Button doesn't respond to touches in landscape mode
Re: Button doesn't respond to touches in landscape mode
- Subject: Re: Button doesn't respond to touches in landscape mode
- From: Doug Hill <email@hidden>
- Date: Fri, 19 May 2017 14:59:03 -0700
FWIW, I finally figured this out. There was a fully transparent view covering the button that had incorrect autolayout constraints. The problem would only manifest in landscape mode due to a bit of luck. Really staring at the view debugging tree helped me spot the overlapping view.
Doug
> On May 19, 2017, at 12:14 PM, Doug Hill <email@hidden> wrote:
>
> I have a button in my view controller view in a storyboard. As far as I can tell, there's nothing particularly interesting about this button. Just a standard system button with a title.
>
> When the device is in portrait mode, the button can be tapped anywhere in it's bounds to send control messages. When I rotate the device to landscape mode, I can only tap on a very small area on the top of the button. Otherwise, taps are ignored.
>
> The button seems to layout with autolayout correctly, there are no autolayout warnings in the storyboard or at runtime. View debugging doesn't show anything weird about this button.
>
> Any ideas on how to troubleshoot this?
>
> Doug Hill
> https://github.com/djfitz/SFFontFeatures
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden