objective c - Determining which action called a method -


i have button linked 2 actions touchdown , touchupinside. both these actions call same method. need know action called method, can execute different instructions when button pressed , released inside same method.

i have tried looking @ buttons state property, doesn't seem change, or touchdown action firing event before button's state changes , touchupinside action firing after buttons state has changed back, resulting in state appearing not change.

determining event called method not possible in ios. but, per requirement, first touchdown event call method , touchupinside event call method. based on order of events firing can able manage code inside method possible.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -