fcbflying
fcbflying

Reputation: 703

UIDevice does not work in swift 2.0

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

Upvotes: 6

Views: 2418

Answers (1)

TPlet
TPlet

Reputation: 948

add the UIKit import

import UIKit

Upvotes: 28

Related Questions