技术控

    今日:98| 主题:49390
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Drawing Shapes with Core Graphics Tutorial

[复制链接]
年华离路 发表于 2016-10-6 15:42:55
174 2

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Core Graphics is an API included in both Cocoa and Cocoa Touch. It allows you to draw graphic objects on the graphic destination. In this tutorial we will draw some basic shapes such as a rectangle or a circle. This tutorial is made with Xcode 8 and built for iOS 10.
  Open Xcode and create a new Single View Application.
     
Drawing Shapes with Core Graphics Tutorial-1 (following,inspector,iPhone,included,selected)
     Choose Next. For product name, use IOS10DrawShapesTutorial and then fill out the Organization Name and Organization Identifier with your customary values. Enter Swift as Language and make sure only iPhone is selected in Devices.

Drawing Shapes with Core Graphics Tutorial-2 (following,inspector,iPhone,included,selected)
     Go to the Storyboard and drag a Horizontal Stack View from the Object Library to the top section of the main View. Go to the Attributes inspector and in the Stack View section and change the Distributon type to Fill Equally. Drag 3 buttons from the Object Library to the Stack View and give them the following names: Rectangle, Lines and Circle. Select the Stack View and Select the Pin button from the Auto Layout button on the bottom-right of the Storyboard and fill in the following values. Select Add 3 Constraints.
1234下一页
友荐云推荐




上一篇:换7记:小博PHP7上试跑
下一篇:DateTime Core Team Members Wanted
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

淡雅1 发表于 2016-10-31 14:20:54
回复不是我的目的!
回复 支持 反对

使用道具 举报

孤丝 发表于 2016-11-5 12:24:58
顶起年华离路
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表