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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -