#if targetEnvironment(simulator)
print("模拟器")
#else
print("真机")
#endif
#if targetEnvironment(simulator)
print("模拟器")
#else
print("真机")
#endif
本文标题:swift 判断是模拟器还是真机
本文链接:https://www.haomeiwen.com/subject/xshfoctx.html
网友评论