Question

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

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top