*416 areas for portrait display, and 480*268 areas for landscape orientation.If you use the tab bar or toolbar, you will reduce the height by 48 or 44 pixels again.4. Keyboards and Pickerview This is generally horizontal 320*216 pixels, which are 480*162 pixels in length.In addition, the Uiswitch default is 94*28 pixels, and the Uisegmentedcontrol pass length is 44 pixels high.The Uitextfield height is generally at least 30 pixels. The 5.UIScreen clas
From: "href =" http://blog.sina.com.cn/s/blog_5f11f3850100rk6r.html "> iPhone controls
Uiview and uiwindow
The rule for the iPhone view is: one window, multiple views. Uiwindow is equivalent to a TV, and uiviews is equivalent to an actor.
1. view of data displayed
The following categories can display information on the screen:
Uitestview: pres
does not need to be changed because the middle branch is automatically stretched. If these two full-screen controls are not included, you may need to add another XIB for iPhone 5. The method is simple. Create an XIB file and set the size of the view to retina.4 full screen. I have already mentioned how to judge iPhone
toolbar is 44 pixels High. The two UI elements are not used in Landscape mode.
A typical application with a navigation bar and status bar retains a 320*416 area for the vertical display and a 480*268 area for the horizontal display. If you use the tab bar or toolbar, the height will be reduced by 48 or 44 pixels again.
4. keyboard and pickerview
This is generally 320*216 pixels horizontally and 480*162 pixels vertically.
In addition, the default uiswitch value is 94*28 pixels, And
supports ios4.0 at the lowest level. It seems that Apple is forcing developers and users to upgrade. 5. Provide a piece of code to determine the iPhone # define iphone5 ([uiscreen instancesrespondtoselector: @ selector (currentmode)]? Cgsizeequaltosize (cgsizemake (640,113 6), [[uiscreen mainscreen] currentmode]. Size): No) You can use if (iphone5) ooxx directly. In addition, if the code is written to the
the main operation clearer.
Read the following articles to help you create excellent visual hierarchies and priorities in your application:
Working with Visual Weight in Your Designs
Creating Focal Points in Your Web design
Using Power Structure and gestalt for Visual hierarchy
The Art of distinction in Web design
4. Avoid the default button style
The default style of the Uibuttons control in the iphone can be seen as a thorn in my peeves (Des
1. Use Autolayout attribute of Interface Builder Document on the xib Interface
Default: Select. The View control is selected,When the size is set to iphone5, the size is automatically reduced when the iPhone 4 is displayed. When the iPhone 5 is displayed, the size automatically increases.
In general, you need to remove this, select the corresponding control A
Next, we will continue to learn about other IOs controls. The controls used this time include slider, and of course there are some labels that have been used before.
We will not create a new project this time. Of course, if you want to create a new project, you can use the previous project control fun.
As shown in the last articleWe added an imageview, two labels, and two textfields. Now we continue to add
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.