objective c - How to add inputs to a selector method -
i'm trying this
[timepicker addtarget:self action:@selector(timevaluechanged:self.pickuptimetextfield datepicker:self.timepicker) forcontrolevents:uicontroleventvaluechanged];
but gives me syntax error. how can pass through uitextfield , uidatepicker method in selector.
it's method signature in action
parameter. attempting pass parameters method, doesn't make sense.
try:
[timepicker addtarget:self action:@selector(timevaluechanged:datepicker:) forcontrolevents:uicontroleventvaluechanged];
Comments
Post a Comment