Is it possible get the event user's rolling UIDatePicker items?
I hope to get the event when开发者_JAVA百科 user is rolling UIDatePicker items. Is it possible?
Welcome any comment
Thanks
interdev
From the UIDatePicker Class Reference
When properly configured, a UIDatePicker object sends an action message when a user finishes rotating one of the wheels to change the date or time; the associated control event is UIControlEventValueChanged. A UIDatePicker object presents the countdown timer but does not implement it; the application must set up an NSTimer object and update the seconds as they’re counted down.
Code:
[myDatePicker addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];
精彩评论