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

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.

主站蜘蛛池模板: 桦川县| 烟台市| 舒城县| 东源县| 浮山县| 黄陵县| 松江区| 丹凤县| 义乌市| 昆明市| 鄂尔多斯市| 宁武县| 芦山县| 务川| 衡东县| 格尔木市| 华安县| 壤塘县| 大城县| 武义县| 尤溪县| 吉首市| 金沙县| 弥勒县| 江华| 平远县| 阜平县| 安义县| 台湾省| 修武县| 江都市| 徐州市| 墨竹工卡县| 弥勒县| 洞头县| 正镶白旗| 张家川| 祁连县| 乳山市| 德化县| 永川市|