Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Reduce the size of date Picker control on view iPhone

Tags:

xcode

iphone

I am working on Date Picker and facing a problem of customizing the size .How to reduce the size for date picker for example height.

like image 329
SOF Avatar asked Nov 24 '10 07:11

SOF


People also ask

How do I change the Datepicker size in Swiftui?

The size of the date picker can easily be changed manually. If you go over to Main. storyboard and simply click on the Date Picker, its size can easily be adjusted.

What is a picker in UI?

A picker displays one or more scrollable lists of distinct values that people can choose from. The system provides several styles of pickers, each of which offers different types of selectable values and has a different appearance. The exact values shown in a picker, and their order, depend on the device language.


1 Answers

Some of the iOS standard controls, like the date picker, have very limited customization options available. I do not believe, for example, that you can change the height. You could develop your own date picker control (if you wanted it to look like a little calendar, for example, you would have to do that anyway). But consider some of the advantages of using the standard control exactly as it is:

  1. Less work than writing your own
  2. Already familiar to most iOS users so there won't be usability issues
  3. Very polished look and feel (for example, animations and sound effects)
  4. Sizing and dimensions are already tested to work well for a touch interface

And so on.

like image 63
Gene Goykhman Avatar answered Nov 02 '22 20:11

Gene Goykhman