【发布时间】:2019-11-12 11:04:15
【问题描述】:
在模拟器(iPhone 7 和 iPhone XR)中运行时,snapshotView(afterScreenUpdates: true) 运行良好且符合预期。但是,当我在我的物理 iPhone 7 设备上对其进行测试时,它会返回一个空白视图但具有正确的框架
我需要 UIView 对象,并且不能像以前对类似问题的许多答案所建议的那样使用 UIImage。
let snappedView = view.snapshotView(afterScreenUpdates: true)
【问题讨论】:
-
你能解决这个问题吗?
标签: ios swift iphone ios-simulator