Macos 什么';s";“预授权”;在Cocoa应用程序中?
可可应用程序中的“预授权”是什么?为什么它总是成功,即使使用随机的auth-right名称?这就是为什么下面的代码从不抛出错误Macos 什么';s";“预授权”;在Cocoa应用程序中?,macos,cocoa,authorization,Macos,Cocoa,Authorization,可可应用程序中的“预授权”是什么?为什么它总是成功,即使使用随机的auth-right名称?这就是为什么下面的代码从不抛出错误 let rightName = ("some-random-string" as NSString).UTF8String let flags = [.PreAuthorize, .ExtendRights, .InteractionAllowed] SFAuthorization().obtainWithRight(rightName, flags: flags)
let rightName = ("some-random-string" as NSString).UTF8String
let flags = [.PreAuthorize, .ExtendRights, .InteractionAllowed]
SFAuthorization().obtainWithRight(rightName, flags: flags)
问题中的代码改编自。问题中的代码改编自。