Hi, I have tried to put queries here sometimes I feel there are people who might be knowing the answers or suggestions at least but I have not got any answer yet from any post... although my posts have not been so dumb...
I have problem using Keychain, i am doing development in IOS5 and for using Keychain wrapper classes I need to have KeychainWrapper updated for ios5, I have someway found the keychain wrapper but I am trying to save the username and password in the keychain but I can not see its working... I write my code under as well... I want to delete the Keychain at somepoint as well but It does not work as well...
Code:
if([self.username text])
[keyChain setObject:[self.username text] forKey:(__bridge id)kSecAttrAccount];
if([self.password text])
[keyChain setObject:[self.password text] forKey:(__bridge id)kSecValueData];
similarly when I want to check if username & password is in Keychain then I check
Code:
[self.username setText:[keyChain objectForKey:(__bridge id)kSecAttrAccount]];
[self.password setText:[keyChain objectForKey:(__bridge id)kSecValueData]];
for some reason it is not working... I am unable to get any output even if i try to Log the keychain values...
what might be wrong???
I found on internet that there is an other way you can store, retrieve and delete the keychain data by using
Code:
SFHFKeychainUtils.h & .m
but after trying to change the file from ios4 to ios5 version.. it is a big mess.. i can not upgrade this file either....
Help ???