Skip to content

Instantly share code, notes, and snippets.

@drewcrawford
Created January 20, 2015 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewcrawford/e0c154b9a80eb6975539 to your computer and use it in GitHub Desktop.
Save drewcrawford/e0c154b9a80eb6975539 to your computer and use it in GitHub Desktop.
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