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