有关iOS开发写的好的博客和网站(持续更新,含盲点)

1. Swift中的trim方法处理字符串:http//www.hangge.com/blog/cache/detail_1649.html

2. Swift语言中的@available和#available

https://blog.csdn.net/offbye/article/details/51150952

3.有关Button的用法,以及button的类型

http://www.hangge.com/blog/cache/detail_529.html

4.有关CALayer的易懂博客

http://www.cnblogs.com/wendingding/p/3800010.html

5. SwiftyJSON

https://blog.csdn.net/zhanglizhi111/article/details/78873537

6. Swfit4中有关随机数的方法

https://www.cnblogs.com/zhuzi1995/p/7534999.html

7. iOS程序执行顺序和UIViewController 的生命周期(墙裂推荐!)

https://www.jianshu.com/p/d60b388b19f5

8. Swift 4.0中的 open,public,internal,fileprivate,private的区别 

https://blog.csdn.net/sun_cui_hua/article/details/78021804

9.14个Xcode中常用的快捷键操作

http://www.cocoachina.com/ios/20141224/10752.html

10. 运算符重载

https://www.raywenderlich.com/650-overloading-custom-operators-in-swift

11. Xcode想添加新的目录或者文件,应该在finder里面新建然后添加好,之后再pod install

12. frame、bounds区别

https://www.cnblogs.com/hj2xx2hj/p/4918611.html

13. collectionViewCell,已知cell个数,一行四个,求行数巧妙方法

let rows: Int = (items - 1) / 4 + 1

14. collectionView的section不包括header,因此要设置section的edge,不用考虑header,直接把header的高度写死就好了

15. SnapKit中offset如果是A在B左边,应该用负数

16. SnapKit中,父视图可以先不设置长宽,设置相对布局即可,子视图添加的时候会让父视图“膨胀”的

17. SnapKit中,make.size和edge的效果是不一样滴,size指的是大小,位置没确定,edge是边界都和父视图贴着了

18. iOS 点击事件传递及响应(面试题哦)

https://blog.csdn.net/intheair100/article/details/71741983

19. SnapKit中可以有一个remakeConstraints函数,可以重新定义布局

20. OC中property属性

https://www.cnblogs.com/fmdxiangdui/p/5368014.html

21. OC中assign与weak,retain与strong的区别
https://blog.csdn.net/u014041012/article/details/57406220

22. GCD使用总结(墙裂推荐!)

综述:https://www.jianshu.com/p/77c5051aede2

主队列:https://blog.csdn.net/yi_zz32/article/details/49956071

23. UINavigationBar中forBarMetrics:UIBarMetricsDefault是啥?

http://wenda.jikexueyuan.com/question/24736/

24. create groups 与 create folder references

https://www.jianshu.com/p/7bdf90d9f966

25. OC代码中新建一个头文件,发现关键字变白,那是因为没有别人文件导入这个头文件,你让别人导入你就可以识别了。

26. Masonry详解

https://www.cnblogs.com/lurenq/archive/2017/10/19/7693214.html

27. getter/setter方法

https://www.cnblogs.com/tangaofeng/p/4858120.html

28. OC中copy和mutableCopy的详细用法

https://www.jianshu.com/p/c961b35b87db

29. OC copy

https://www.jianshu.com/p/dcbbe69551ef

https://www.jianshu.com/p/4d51197e936b

30.  @property中retain assign copy详解

http://blog.sina.com.cn/s/blog_b716ca8d0102uy6s.html 

31. Masonry和SnapKit要先addSubview再布局!!!!!

32. ScrollView中多ViewController复用

https://www.jianshu.com/p/31177abe2e4c

https://github.com/lihaojie/iOS_develop_notes

33. frame bounds区别

https://blog.csdn.net/mad1989/article/details/8711697
Ps:关于ScrollView的bounds的问题,他的坐标系在哪?这要想,第一步,把ScrollView摊开,左上角顶点就是原点,然后滚动的时候也是不变的,即哪怕出了屏幕,坐标轴还是以摊开时的左上角为原点,此时,我用CGRectGetMinX,取得其实是屏幕上显示的那块区域相当于坐标系原点的距离。如果是frame呢?那坐标系原点就成了父view的原点。

34. 使用masonry布局的时候,不会改变其frame和bound,切记!

参考文章:

https://segmentfault.com/q/1010000011332667
http://www.10tiao.com/html/216/201709/2652553039/2.html

精辟回答!

35. cell的初始化函数不是initWithFrame,而是(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
36. 同时重写getter和setter方法需要在implementation里面加上@synthesize ??? = _???;

37. 天坑!!!ScrollView的contentOffsize会自动偏移怎么解决?

方法一:不要放scrollView被第一个添加到父视图 https://blog.csdn.net/guogrower/article/details/70533219

方法二:设置_scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
38. NSPoint转化成CGPoint

[??? CGpointValue]; // ???是NSPoint类型

38.[self.pageScrollView.superview layoutIfNeeded]; // 使用自动布局时要想获取frame,就得加上这句话!

39. 如果要删除cocoapods beta版,应该用如下命令(不加sudo)

gem uninstall cocoapods

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值