add second field when uipickerview in countdowntimer mode in iPhone

一曲冷凌霜 提交于 2020-07-09 08:26:27

问题


i have a functionility for show count down timer in format, but when uidatepicker in count down timer mode , it show only HH:MM.

how i can add a extra field for second in uidatepickerview.

回答1:


how i can add a extra field for second in uidatepickerview.

You can't. UIDatePicker only displays hours and minutes in countdown mode. If you need to display seconds as well, you'll have to recreate it yourself using a UIPickerView.

As always, you should file an enhancement request to request this functionality.




回答2:


- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView;
{
return 2;
}

it will create section in your picker view.



来源:https://stackoverflow.com/questions/12742501/add-second-field-when-uipickerview-in-countdowntimer-mode-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!