ashfurrow / yourfirstswiftapp

https://leanpub.com/yourfirstswiftapp
MIT License
66 stars 12 forks source link

ViewController doesn't compile on Xcode 6.1 #2

Closed joao-parana closed 9 years ago

joao-parana commented 9 years ago

on Xcode 6.1 the code bellow on class ViewController doesn't compile

override func supportedInterfaceOrientations() -> Int {
    return Int(UIInterfaceOrientationMask.Portrait.toRaw())
}

Change to :

    return Int(UIInterfaceOrientationMask.Portrait.rawValue)
ashfurrow commented 9 years ago

Sorry for taking so long – I appreciate you taking the time to file this. Thanks!