2

I am facing a weird issue to tap UIButtons with Xcode 9 and IOS 11.2. The buttons are in a UIView and are simple call to action buttons such as submit and cancel.

When I click on these buttons, the action is triggered only when I click to the left most part of the button. I have checked that the view width is enough to allow the button to be inclusive in it as a whole. However, for some reason, I am not able to see why I am not able to click the button. A similar problem is encountered in other views too.

Any help is much appreciated.

Thanks!

Ron
  • 389
  • 1
  • 4
  • 16
  • 1
    Have you used Xcode's view debugger to check whether anything clips your buttons at run time? – Phillip Mills Jan 09 '18 at 20:22
  • @PhillipMills. Thanks for the prompt response. I checked but don't see any overlapping view that would block it from triggering. Did you also face a similar problem? – Ron Jan 09 '18 at 20:31
  • Can you post some details of how it is all setup. Perhaps some code you are using and/or screenshots of the layout. It's difficult to tell what is wrong otherwise as it could be any number of things. – Upholder Of Truth Jan 09 '18 at 21:32
  • 1
    `view width is enough`, can you confirm by giving border to this view & make sure buttons are inside this view? this happens usually when buttons goes out of view... also can you post screenshot of the xcode to check the view & inner elements hierarchy? – Fahim Parkar Jan 10 '18 at 05:59

0 Answers0