Skip to main content


Showing posts from August, 2015

Save value in keychain - iOS application

Login and sign up activity is very common in every ios application. Most of the applications follow single sign in process . Single sign in means user have to login only once. Generally developers tend to save values(username, password) in user default. When user delete the application, the values stored in the NSUserDefault also vanishes, then user have to sign in again. Alternative to NSUserDefault, which save values permanently in keychain:- Grab the four files (.h and .m) PDKeychainBindingsController folder  and add them to your xCode project. Import the header file. #import "PDKeychainBindings.h" Set object:-         [[ PDKeychainBindings sharedKeychainBindings ] setObject :@"Pardeep"   forKey : @"key_name" ]; Get object from key:-              NSString *folderPath=[[ PDKeychainBindings sharedKeychainBindings ] objectForKey : @"key_name"] ; Remove object:             [[ PDKeychainBindings sharedKe