I am new to iOS development. Sorry for any mistakes.
How can I get something in iOS similar to mouse hover and a button changing its color.
Do I need to use touch events or slide events for that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would use the touchstart and touchend events. They are very responsive and act exactly as you would think. I apologize, you are not talking web. Either way, there should be touchevents in cocoa. I use Titanium, which accesses native methods via javascript and there are touchevents so I would know there are in cocoa. Check the documentation on the best manner in which to use those.
Depending on your desired effect you may want to use gestures as well. But if you are looking to mimic hover, a touchstart/end is what you want.