![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
panbch
哈哈哈哈
展开
-
stored property "text" without initial value prevents synthesized initializers
swift开发时有可能会遇到这样的错误提示class ARandom{ var number: Int = 0 var text: String}stored property “text” without initial value prevents synthesized initializers看了下文档,有这样的解释: *Classes and structures mu原创 2016-07-26 21:56:33 · 1879 阅读 · 0 评论 -
iOS 9出现错误Applications are expected to have a root view controller at the end of application launch
iOS 9出现错误Applications are expected to have a root view controller at the end of application launch导致无法运行今天在xcode7上试了一个老项目,装到iOS9出现闪退然后提示这个 Applications are expected to have a root view controller at t原创 2016-07-26 22:16:21 · 433 阅读 · 0 评论 -
iOS改变控件形状常用方法性能分析
iOS改变控件形状常用方法性能分析在iOS开发中有时要控制控件的形状,比如显示为圆形。熟悉iOS绘制的朋友第一反应大都是用Core Graphics/Quartz 2D的提供的方式裁剪CGContext画布等,这当然没错,但在不复杂的应用场景,可能会出现杀鸡用牛刀的情况,甚至Core Graphics性能还不如其他简单的方法。 之前在做显示圆形图片的需求时看到一个方法:let maskPath =原创 2016-12-07 20:27:13 · 689 阅读 · 0 评论