I have existing KSecValueData and KSecAttrAccount

but when I tried to define a new 1

self.username = @keychain.objectForKey kSecAttrLabel

it give me undefine local variable, I checked out the documentation ,i thought kSecAttrLabel was initialise as default, so that we can use it anytime/? what other can be use??

Thanks...

http://developer.apple.com/library/ios/#documentation/Security/Reference/keychainservices/Reference/reference.html

有帮助吗?

解决方案

When rubymotion imports constants/globals such as kSecAttrLabel then it capitalizes the leading 'k', so in this case you would use KSecAttrLabel.

This is because ruby constants should start with an uppercase letter.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top