• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Button doesn't respond to touches in landscape mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Button doesn't respond to touches in landscape mode (From: Doug Hill <email@hidden>)

  • Prev by Date: Button doesn't respond to touches in landscape mode
  • Next by Date: Re: Button doesn't respond to touches in landscape mode
  • Previous by thread: Button doesn't respond to touches in landscape mode
  • Next by thread: Re: Button doesn't respond to touches in landscape mode
  • Index(es):
    • Date
    • Thread