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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to