swift判断app是否运行在模拟器上
static func isSimulator() -> Bool {
#if targetEnvironment(simulator)
return true
#else
return false
#endif
}
swift判断app是否运行在模拟器上
static func isSimulator() -> Bool {
#if targetEnvironment(simulator)
return true
#else
return false
#endif
}
本文标题:iOS swift判断是否为模拟器
本文链接:https://www.haomeiwen.com/subject/plfsdrtx.html
网友评论