官术网_书友最值得收藏!

Storyboard previews

Up until now, writing applications that supported previous versions of iOS mostly consisted of updating API calls and minor coding conventions. With iOS 7, Apple has drastically changed the design of all standard UI objects. Knowing the size, position, and layout of all objects for both iOS 7 and previous versions is very important to maintaining a consistent user experience. This is where storyboard previews come in.

In order to use storyboard previews, you must select the assistant editor and navigate to the view you wish to preview (usually a .xib or .storyboard file). Select the Related Files menu option, navigate to Preview, and select the .xib or .storyboard file you wish to preview, as shown in the following screenshot:

Storyboard previews

You will see an identical preview of your view on the right-hand side of the assistant editor. In the bottom-right corner of the view, you will see a button that says iOS 7.0 and Later. Click on it, and then select iOS 6.1 and Earlier as shown in the following screenshot:

Storyboard previews

Your view will now display all of its UI elements as they will appear in iOS 6 or earlier. This is a very handy tool if you wish to make your app backwards compatible.

主站蜘蛛池模板: 邯郸县| 景宁| 永川市| 邹平县| 浙江省| 神池县| 云南省| 灯塔市| 民和| 临夏县| 浦城县| 赫章县| 伊吾县| 玛纳斯县| 虞城县| 沅江市| 和静县| 子长县| 柘荣县| 铅山县| 云南省| 景洪市| 广西| 犍为县| 雷山县| 南丹县| 洪江市| 壤塘县| 东兰县| 扬州市| 东乌珠穆沁旗| 黄平县| 两当县| 蕲春县| 思茅市| 资兴市| 揭东县| 平乐县| 和田市| 南汇区| 蒲江县|