func isSimulator() -> Bool { var isSim = false #if arch(i386) || arch(x86_64) isSim = true #endif return isSim }如果是模拟器返回true 原文链接:https://www.f2er.com/swift/321769.html
func isSimulator() -> Bool { var isSim = false #if arch(i386) || arch(x86_64) isSim = true #endif return isSim }如果是模拟器返回true 原文链接:https://www.f2er.com/swift/321769.html