ios developer tiny share-20160713

今天讲Xcode如何创建ios的布局文件,storyboard文件。今天讲的是拖动创建布局的方式,即所见即所得的那种简单创建布局的方式。ios的布局管理工具是Xcode内嵌的IB,即Interface Builder,布局文件的后缀是.storyboard。具体如下:

Use Interface Builder to visually lay out your app's user interface. To edit the user interface, select a user interface file in the project navigator (), and the file opens in Interface Builder in the editor area. All projects created from a template contain a Main.storyboard file that contains the user interface for your app. For watchOS apps, the file is called Interface.storyboard. For iOS apps, there’s also a LaunchScreen.storyboard file for the view that is displayed while the app is launching. A storyboard (.storyboard) file contains a set of view controllers and their views. To open Interface Builder in a separate window, double-click the user interface file in the project navigator.


The canvas will show your user interface as it appears on a device. For iOS and watchOS apps, the first time you open a storyboard file, a sheet appears asking you to choose a device family (for example, iPhone 6s or Apple Watch 38mm). Later, you can change the device using the device configuration controls below the canvas.
The library in the utility area contains resources that you can add to your project or files. To add an object to the user interface, drag the resource from the Object library () to the canvas. To view the objects as a list or as a grid, toggle the icon in the lower-left corner of the library. To filter the objects, enter text in the filter bar at the bottom of the library. For example, to find a button, enter button in the filter bar.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值