ios - Define click event for UISegmentedControl -
I have added a UISegmentedControl
to my application, no button is selected in normal position is. I want to apply a button click event when the first section is selected, and another event occurs when clicking on the second button.
If I understand your question correctly, then you should continuously UIControlEventValueChanged UISegmentedControl
), in the example given in the example of UISegmentControl properly.
i.e.
[fractal control addTarget: auto operation: @selector (control :) for control control: UIControlEventValueChanged];
Used for the following signature message:
- (zero) verb: (id sender)
or
[Interrupted control connecting: self-action: @Selector (Action: forEvent :) Control events: UI ControlWriteViews];
- (zero) action: (id) sender for event: (UIEvent *) event
For
or
[fractal control addTarget: self-action: control event for @Silver (action): UI ControlAventWalls];
for the simplest method:
- (zero) verb
which are the standard types of target actions Selector used in UIKit
Comments
Post a Comment