I am trying to use SSKeychain
in my application to store a user's credentials. I can successfully save the credentails. However, when I try to retrieve the credentials, they are outputted as an NSArray. I want one specific value so I am using valueForKey:NSString
which gives me ( acct )
Here is the code I am using
NSArray *accounts = [SSKeychain accountsForService:@"testApp"];
NSString *account = [accounts valueForKey:@"acct"];
NSLog(@"%@", account);
I would like for the output to be acct
not (acct)
.