I am working on creating an app login details. I have gone through keychain and i was able to create keychain wrapper. But the problem is how can we authenticate username and password details entered in login page.I have programmed to set username and password using he following
[keychainItem setObject:@"password you are saving" forKey:kSecValueData];
[keychainItem setObject:@"username you are saving" forKey:kSecAttrAccount];
I was also able to retrieve username and password
NSString *password = [keychainItem objectForKey:kSecValueData];
NSString *username = [keychainItem objectForKey:kSecAttrAccount];
But the above retrieves the recently stored username and password pair. But i want to search the username and password fields and authenticate them. Can any one please help me on this