1

As described, I have a UIButton subclass, that I am designing in IB. I have set the button subclass to a UIView, and set an image to the button as well. I have set a UILabel beneath the image, attempting to give it the Finder look. Everything works great, except for the fact that the right 1/3rd of the image won't respond to touch!

It is the strangest thing. The button bounds are set to encapsulate the entire image, but that right 1/3rd won'r respond.

Has anyone seen this before? Does anybody know what's going on?

Thanks

Steven S.
  • 45
  • 1
  • 5
  • your app is view based or navigation based. i faced such a problem in navigation based app. – ArunGJ Jun 23 '11 at 16:31
  • 1
    is there another transparent view in front of the right 1/3? Or maybe your button has been moved outside of it's parent view's bounds? – meggar Jun 23 '11 at 16:32
  • Thanks for the comments. Right now, I am just in the prototyping stage of a simple view, without navigation at this point. I don't know how there could be another transparent view, but I'll look into the bounds issue. Thanks – Steven S. Jun 23 '11 at 16:37
  • Have you tried to set the UIImageView to userInteractionEnabled = NO? – Dude Jun 23 '11 at 16:43
  • I don't have a UIImageView, I just have a UIView, and then in that, I have a UIButton, and a UILabel. Turning off user interaction on the UIView didn't quite do what I am hoping for... – Steven S. Jun 23 '11 at 16:47
  • 1
    Ok wow. I fixed my problem. I was accidentally setting the frame of the view upon initWithFrame different than what I was doing in IB... Silly problem. Thanks for your help! – Steven S. Jun 23 '11 at 16:50

0 Answers0