如何在UIDatePicker中将Minutes Component设置为0

如何在UIDatePicker中将Minutes Component设置为0

问题描述:

如何将UIDatePicker中的Minute componet设置为零

How to set Minute componet in UIDatePicker to Zero

如果您的问题是将 UIDatePicker 设置为仅以分钟为单位显示 00 ,则答案是.

If your question is to set the UIDatePicker to display only the 00 in minute component, then the answer is NO.

您可以更改UIDatePicker的 minuteInterval 属性--->最小值为1;最大值是30.

You can change the minuteInterval property of UIDatePicker---> the minimum value is 1; the maximum value is 30.