Hi
I am relatively new to iPad programming.
I have a UIScrollView which contains a lot of UIButtons that are being programmatically added to the scroll view as subviews. The view is a horizontal bar at the bottom of the screen with all the buttons in a long row next to each other.
Problem:
The first 15 UIButtons respond to touch events and trigger their target method. From the 16th button to the end don't respond at all, not even getting highlighted. At first I thought that it has something to do with the buttons being out of view when they are added, but only 7 buttons show initially and you have to scroll to get to number 15 which still responds. Only number 16 and onwards don't.
All buttons are handled equally with regards to how they are added, how their targets are assigned, etc. What could I be doing wrong?
Thanks
I am relatively new to iPad programming.
I have a UIScrollView which contains a lot of UIButtons that are being programmatically added to the scroll view as subviews. The view is a horizontal bar at the bottom of the screen with all the buttons in a long row next to each other.
Problem:
The first 15 UIButtons respond to touch events and trigger their target method. From the 16th button to the end don't respond at all, not even getting highlighted. At first I thought that it has something to do with the buttons being out of view when they are added, but only 7 buttons show initially and you have to scroll to get to number 15 which still responds. Only number 16 and onwards don't.
All buttons are handled equally with regards to how they are added, how their targets are assigned, etc. What could I be doing wrong?
Thanks