3

I've been reading similar posts all morning, but could not find an answer to my problem. As title says, I have several UIButton-s in UIView that is a child of a UIScrollView. I set the contentSize for the scrollview, and I can scroll and see all contents of UIView, however, I cannot click any of the buttons that are not visible originally (buttons that are visible from the beginning work just fine).

I tried setting the frame of the child UIView, and interactions are enabled inn all views.

Anything else that I'm missing?

thank you!!!

Andy F
  • 59
  • 3
  • 5
  • Can you share some code.. it ll be easier then. – Abhishek Arora Dec 23 '14 at 19:37
  • Are you also setting the size of the UIView? Give it a background color so you can see if your buttons are inside its bounds. – rdelmar Dec 23 '14 at 20:01
  • 2
    Solved! Thanks everyone for the feedback. The secret is indeed to make sure you adjust the frame of the view. I thought I originally did it, but my own framework tried to outsmart me and hence reverted it back :) – Andy F Dec 23 '14 at 20:21
  • You should answer your own question with this comment. I will upvote it!! – Scooter Jan 03 '17 at 20:51

0 Answers0