سؤال

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