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

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.

主站蜘蛛池模板: 楚雄市| 大渡口区| 洛阳市| 调兵山市| 新绛县| 宜章县| 当阳市| 承德市| 汉源县| 高雄市| 永靖县| 黑河市| 鹤庆县| 丽江市| 衡南县| 额敏县| 思南县| 宜川县| 运城市| 德令哈市| 会昌县| 尉氏县| 奎屯市| 鹤岗市| 太湖县| 甘肃省| 巴彦淖尔市| 定南县| 西乌| 湘潭县| 楚雄市| 安丘市| 绍兴市| 康马县| 凤阳县| 和田县| 沾益县| 旺苍县| 舟山市| 唐河县| 澎湖县|