Created
January 14, 2014 01:39
-
-
Save alex-zige/8411571 to your computer and use it in GitHub Desktop.
Keychain Security Value Data is return CFDataRef, to cast as NSString you have to parse it!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSData *passData = [keychain objectForKey:(id)kSecValueData]; | |
NSString *pass = [[NSString alloc] initWithBytes:[passData bytes] length:[passData length] encoding:NSUTF8StringEncoding]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment