开发者

What are the guidelines for using UIDatePickers on iPad?

开发者 https://www.devze.com 2023-03-20 15:19 出处:网络
I know that it is against Apple\'s iOS Human Interface Guidelines to have a picker view extend all the 开发者_高级运维way across the screen on an iPad so that it is touching both sides. Is this the sa

I know that it is against Apple's iOS Human Interface Guidelines to have a picker view extend all the 开发者_高级运维way across the screen on an iPad so that it is touching both sides. Is this the same case for date pickers?


An excerpt from the iOS Human Interface Guidelines:

On iPad, present a date and time picker only within a popover. A date and time picker is not suitable for the main screen.

Also:

The overall size of a date and time picker is fixed at the same size as the iPhone keyboard.


Err, yea, seeing as they are basically the same thing. Remember though the HIG is not a set of rules, they are guidelines. If you think a full-width picker makes sense for your app do it.

IMO, I cannot think of a reason to use a full-width picker on iPad. It would look quite ugly. Your better off showing the UIDatePicker in a popover. What are you trying to achieve?

0

精彩评论

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

关注公众号