Im пытается записать перечисление:
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 type '()' to type 'String'