iOS13防坑

2019-11-08  本文已影响0人  Mr_LS

暗黑模式禁用方法:

在Info.plist 文件中,添加UIUserInterfaceStyle key 名字为 User Interface Style 值为String,

将UIUserInterfaceStyle key 的值设置为 Light

xcode11.2中xib上添加textView闪退:

1.在安装xcode11即完美运行(下载地址:https://developer.apple.com/download/more/?=xcode
2.textView手写添加

IOS13之后,生命周期时间就开始由UISceneDelegate接管,如何恢复到原来的项目结构:

1.删除info.plist中的Application Scene Manifest
2.删除项目中的Scenedelegate.h和Scenedelegate.m
3.删除掉APPdelegate.m中的#pragma mark - UISceneSession lifecycle代码
4.在APPdelegate.h中添加@property (strong, nonatomic) UIWindow * window;属性

上一篇 下一篇

猜你喜欢

热点阅读