I am trying to use the following code to get information about my device:
UIDevice.currentDevice().systemVersion
But I got an error as shown below:
Use of unresolved identifier UIDevice
add import UIKit
import UIKit