UIDevice does not work in swift 2.0
Asked Answered
M

1

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

Marylnmarylou answered 17/12, 2015 at 6:41 Comment(0)
N
28

add the UIKit import

import UIKit
Nefen answered 17/12, 2015 at 6:42 Comment(1)
This gets me a "No Such Module "UIKit"Polysyndeton

© 2022 - 2024 — McMap. All rights reserved.