基础篇
1. UIView 不能接收触摸事件的三种情况:
1 | 1.不接受用户交互: userInteractionEnabled = NO; |
2. 事件传递
1 | // 核心方法 |
3. setNeedsDisplay, setNeedsLayout, layoutSubviews
1 | UIView 的 setNeedsDisplay(需要重新显示,绘制)和 setNeedsLayout(需要重新布局)方法。 |
1 | // layoutSubviews 在以下情况下会被调用(视图位置变化是触发): |
4. 区分UDID&UUID&IDFV
1 | UDID 是 Unique Device Identifier 的缩写,中文意思是设备唯一标识. |
IDFV: Identifier For Vendor [iOS 6.0+] 官方文档
1 | IDFV :Identifier For Vendor(应用开发商标识符) |
5. const, static和 extern修饰
1 | (1) const修饰符定义的变量是不可变的 |
6. 解析XML文件
1 | 1. 解析XML文件有哪几种方式? |
参考: iOS下XML文件的三种解析方式
7. 简述iOS内存分区情况
1 | (1)栈区:由编译器自动分配释放,存放函数的参数值,局部变量的值等.其操作方式类似于数据结构中的栈. |
8. 死锁的4个必要条件
1 | 1. 互斥条件:一个资源每次只能被一个进程使用。 |
9. GCD零碎知识点
1 | // 关于dispatch_barrier_async |
10.性能优化点
1 | // tableview相关优化点 |
参考: [iOS 保持界面流畅的技巧] (https://blog.ibireme.com/2015/11/12/smooth_user_interfaces_for_ios/)
- 本文作者: 醉疏狂
- 本文链接: https://hubin97.github.io/2023/04/10/iOS相关知识梳理(一)/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!