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...
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.