I have added a UISegmentedControl in my application. None of the buttons are selected in normal state. I want to implement a button click event when the first
UISegmentedControl
You can attach a handler in IB to the value changed event: UIControlEventValueChanged
or you can do it in code:
[segmentedControl addTarget:self action:@selector(action:) forControlEvents:UIControlEventValueChanged];