I try to use following code to get my device information:
UIDevice.currentDevice().systemVersion
But I got an error as bellow shown:
Use of unresolved identifier UIDevice
I try to use following code to get my device information:
UIDevice.currentDevice().systemVersion
But I got an error as bellow shown:
Use of unresolved identifier UIDevice
add the UIKit import
import UIKit
© 2022 - 2024 — McMap. All rights reserved.