I have to make an app in which there are around 20 buttons, if I switch from one button to another button without removing the touch(i.e. by dragging the touch) I want to call the function when I entered in that button’s frame region.
For example:
when I drag touch from button’s tag 10 to button’s tag 11 then it should call button’s tag 11 selector method.
I have to make an app in which there are around 20 buttons, if
Share
I think you can not do it with
UIButtons. But i have one suggestion for this may be it help you. AddImagesinstead ofButtonsset thoseuserIntractionEnable:NOthen intouchesMovedmethod you can get call your@selectormethods by comparing withX,Yco-ordinates.I wrote a small code for this –
Hope this will help you !!!! 🙂