
iphonex
思玉
码农
展开
-
unity3d iPhone X 适屏代码 屏幕适应方案
添加获取ios手机型号方法#import <sys/utsname.h> + (NSString*)getDeviceVersion { struct utsname systemInfo; uname(&systemInfo); NSString *deviceVersion = [NSString stringWithCString:systemInfo.machine enc原创 2017-11-09 11:33:34 · 12440 阅读 · 9 评论 -
unity3d iPhone X home键 适应方案
unity3d iPhone X home键 适应方案在unity导出的xcode工程里面 查找UnityViewControllerBase.h增加方法如下- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures; - (BOOL)prefersHomeIndicatorAutoHidden; 在unity导出的xcode工程里面 查找原创 2017-12-08 14:50:38 · 1318 阅读 · 0 评论