I've a custom cell for my table view,
I want to assign value changed event for the segment ON/OFF. Ideally, the event sent a asynchronous request depending on the label value as a POST argument to a web service to update the value.
I thought there are 2 ways to do the same:
1. From IB make a IBAction for the event valueChanged in the CustomCell.m file.
2. Dynamically assign a handler, like you assign to the function, using addTarget.
Is my approach correct?? If yes, could someone please tell me/point to some tutorial where i can learn to add event handlers for the valueChanged event. The handler must take atleast one argument.