if #available(iOS 10.0, *) {
let r = UIGraphicsImageRenderer(size:CGSize(width:10,height:10))
} else {
// Fallback on earlier versions
}
if #available(iOS 10.0, *) {
let r = UIGraphicsImageRenderer(size:CGSize(width:10,height:10))
} else {
// Fallback on earlier versions
}
本文标题:根据系统版本使用不同的 API
本文链接:https://www.haomeiwen.com/subject/jothyxtx.html
网友评论