6

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

fcbflying
  • 693
  • 1
  • 7
  • 23

1 Answers1

27

add the UIKit import

import UIKit
TPlet
  • 898
  • 7
  • 13