Created
January 20, 2015 02:23
-
-
Save drewcrawford/e0c154b9a80eb6975539 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
override func viewDidLoad() { | |
super.viewDidLoad() | |
var dict : [String: AnyObject] = [:] | |
dict[kSecClass] = kSecClassGenericPassword | |
dict[kSecMatchLimit] = kSecMatchLimitOne | |
dict[kSecReturnAttributes] = true | |
var rDict : Unmanaged<AnyObject>? | |
let status: OSStatus = SecItemCopyMatching(dict, &rDict) | |
if (rDict==nil) { | |
println("This behavior only in release mode.") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment