UIDevice does not work in swift 2.0

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

+6
source share
1 answer

add import UIKit

 import UIKit 
+22
source

All Articles