How can I tell programmatically if a IBAction has been called by code or by user action.
Eg
I have a method, -(IBAction)someMethodWithIts:(id)sender
which I have linked to a valueChanged on a UISegmentedControl.
It can be called by,
- User changing segment
- setting the selectedIndex in code
- calling
[self someMethodWithIts:foo];
Is there a way to distinguish if the call has come from the first way?
Cheers
Sam