• 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: Alex Zavatone <email@hidden>
  • Date: Sat, 20 May 2017 01:55:59 -0500

On May 19, 2017, at 2:14 PM, Doug Hill wrote:

> in it's bounds t

In its* bounds

> 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.

How is your button wired up?

What is its contentEdgeInsets?

If you override pointInside for the view of the button, what does it return when you tap on the button before and after rotating it??

http://stackoverflow.com/questions/17249104/how-to-increase-selection-area-of-uibutton

If you are using constraints, remove them and see if that affects the hit region.

After rotating, there is a button you can click in the debugger that can show your view hierarchy and you can inspect each element

While running from Xcode you can also display the view hierarchy of the view controller or the button with [myButton.view recursiveDescription]

This should help:

http://stackoverflow.com/questions/5150186/how-do-i-inspect-the-view-hierarchy-in-ios

Good luck.
_______________________________________________

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: Re: Button doesn't respond to touches in landscape mode
  • Next by Date: Re: Repository of older (outdated) PDF Guides?
  • Previous by thread: Re: Button doesn't respond to touches in landscape mode
  • Next by thread: scrolling woes
  • Index(es):
    • Date
    • Thread