質問

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