Я пытаюсь зарегистрировать перечисление:
enum CKAccountStatus : Int {
case CouldNotDetermine
case Available
case Restricted
case NoAccount
}
NSLog("%i", CKAccountStatus.Available)
Компилятор жалуется:
Type 'CKAccountStatus' does not conform to protocol 'CVarArg'
Почему? Я попытался указать значение:
NSLog("%i", CKAccountStatus.Available as Int)
Но и это не летает:
Cannot convert the expression's type '()' to type 'String'
println
? - person Firo   schedule 05.06.2014(Enum Value)
. Правильно, но не очень полезно :) - person zoul   schedule 05.06.2014