I’m trying to evolve from the iOS 4.2 sample “Touches” but I can’t do it (I’m new to the iOS):
I’d like to count taps on each of the different UIImageViews. Currently the sample count taps no matter where I press, in the views, outside the UIImageView(s), etc. What I want is to show how many taps I’m tapping inside a specific UIImageView.
The output would be a label saying 7 taps on the red button; 2 taps on the yellow button; 3 taps on the green.
I’m trying to evolve from the iOS 4.2 sample Touches but I can’t do
Share
OK I got it:
where firstTapView, secondTapView and thirdTapView are my UILabels, shown on the screen. Touches sample uses UIImageView, but I changed it to UILabel, so I can write whilst touching the screen.