objective c - How can I decide if switch view value was changed by user interaction or by code in IOS? -



objective c - How can I decide if switch view value was changed by user interaction or by code in IOS? -

i have switch view on ui , i'd handle event when value changed. perform i've made ibaction method handle value changed event. far good.

my problem can't decide if alter performed - code (it may happen in app) - user interaction

how can decide if changed user interaction or code?

is there specific method changes switch value when it's done code only? if so, maybe utilize method set boolean/flag check against when need decide/handle event.

ios objective-c switch-statement ibaction

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -