![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios开发
Vktor
这个作者很懒,什么都没留下…
展开
-
UiViewController 里frame和bounds取值有误
UiViewController frame和bounds 在生命周期里的变化 UiViewController self.view.frame.size.width 和self.view.bounds.size.width 在viewdidLoad里的宽度会和xib里的宽度一样,不会得到手机屏幕适配后的长度。 即xib 上view的宽度为320 在viewDidLoad里就是320 。但是原创 2016-05-04 16:20:11 · 485 阅读 · 0 评论 -
NSOperationqueue
http://blog.cnbluebox.com/blog/2014/07/01/cocoashen-ru-xue-xi-nsoperationqueuehe-nsoperationyuan-li-he-shi-yong/ 目前在 iOS 和 OS X 中有两套先进的同步 API 可供我们使用:NSOperation 和 GCD 。其中 GCD 是基于 C 的底层的 API ,而 NS转载 2016-05-06 13:45:09 · 217 阅读 · 1 评论 -
网上的常见的画虚线方法~
CAShapeLayer *shapeLayer = [CAShapeLayer layer]; [shapeLayer setBounds:self.firstView.frame]; [shapeLayer setPosition:self.firstView.center]; [shapeLayer setFillColor:[UICo原创 2016-05-06 20:37:57 · 552 阅读 · 0 评论