ios - Get selected row of UIDatePicker while spinning -
i have uidatepicker
in view controller in uinavigationcontroller
. i'm registering changes in selected date this:
[self.datepicker addtarget:self.alarm action:@selector(timechanged:) forcontrolevents:uicontroleventvaluechanged];
it works well, except if user presses button in uinavigationcontroller
before date picker has settled. in case, timechanged:
method isn't being called, , i'm not getting new date.
nothing being released when press button, it's view controller being popped off. (a reference maintained).
i've found solutions problem uipickerview
involve implementing delegate methods picker view (eg: uipickerview: row value while spinning?). unless i'm mistaken, that's not option uidatepicker
. if possible, i'd stick uidatepicker
rather custom uipickerview
. there way this? doesn't have selected row (within row or 2 fine), closer better.
edit: jailbreak app, private apis fine, if can figure out are.
as current apis, there's no way of detecting whether uidatepicker
spinning.
this because uidatepicker
not subclass of uipickerview
, manages uipickerview
internally.
i'm afraid best solution here use custom uipickerview
.
Comments
Post a Comment