开发者

why UIDatePicker Not Animated?

开发者 https://www.devze.com 2023-01-29 19:57 出处:网络
NSDate *today = [NSDate date]; [datePicker setDate:to开发者_如何学Goday animated:YES]; When i use This , i have no animating!!
    NSDate *today = [NSDate date];

[datePicker setDate:to开发者_如何学Goday animated:YES];

When i use This , i have no animating!! Thanks


Setting the date in viewDidLoad: sets the date before the date picker appears onscreen. Wait until viewDidAppear: before setting it.

0

精彩评论

暂无评论...
验证码 换一张
取 消