IPhone 8 没刘海屏幕 示例代码: //// ViewController.m// IOS_SAFEAREA_TEST//// Created by Hacker X on 2023/10/14.//#import "ViewController.h"@interface ViewController ()@end@implementation ViewCont
https://zhuanlan.zhihu.com/p/124246847 https://blog.csdn.net/qq302756113/article/details/116134955 对于有齐刘海的手机,要单独做适配,具体代码: public class XAdaptive{public Vector2 left;public Vector2 right;}public S