iOS13AdaptationTips
iOS13AdaptationTips copied to clipboard
iOS13 AdaptationTips
Network
原文链接: https://github.com/ChenYilong/iOS13AdaptationTips/issues/24 ## CNCopyCurrentNetworkInfo() does NOT work on iOS13 2019August08-推送:    已经有哥们儿 work around了: Fix CNCopyCurrentNetworkInfo() does NOT work on iOS13 - [`Fix CNCopyCurrentNetworkInfo() does NOT work on...
看到苹果有要求,自 2020 年 4 月起,提交至 App Store 的 app 必须使用 Xcode 的 Storyboard 搭建启动页,app 界面也必须能适应所有显示屏尺寸。 项目如果使用的是xib作为闪屏,是否需要做调整呢?
  还有现在 root view controller 的 view superview 也不直接是 UIWindow 了,估计很多代码都有问题了。 反正我获取keyWindow 使用 [UIApplicatoin sharedApplication].keyWindow,暂时不会受影响吧。 最好通过Appdelegate来获取keywindow 只是 Window 和 rootviewcontroller 的view 之间隔了几个 private 的 view
Dark Mode
## Action WWDC19: > Apps on iOS 13 are expected to support dark mode Use system colors and materials Create your own dynamic colors and images Leverage flexible infrastructure 其中注意:...
`UIScreen.setBrightness` will crash on iOS 13 in global thread, which preform normally before iOS 13. Crash stack:  It will be ok if I dispatch to main queue on iOS...
在willBeginEditingRowAtIndexPath 里面遍历子视图UISwipeActionPullView修改按钮样式在iOS13上变无效了 不知道大家有没有解决办法
line 17 新增了一个枚举:typedef NS_ENUM(NSInteger, UIImageOrientation);这种写法的枚举 编译如果引入了/PhImageManager.h头文件,在xxx.mm文件中。就会报错: expected identifier or '{' build setting 关于C++ Language 的设置为 Compiler Default 有人碰到吗
模态界面默认交互改变
## Action - 建议任务模式下开启 - 建议保留关闭按钮,满足残障人士语音操作。 ## 正文 13的present 默认有视差效果,模态出来的界面现在默认都下滑返回。   一些页面必须要点确认才能消失的,需要适配。 如果项目中页面高度全部是屏幕尺寸,那么多出来的导航高度会出现问题。 可以 手动写 ```Objective-C self.modalPresentationStyle = .fullScreen ``` //TODO: 有很多自定义的弹框,使用的是 .custom ,sheet alert bubble 之类。 
https://developer.apple.com/news/?id=09062019b