NSObject+LocalStorage
// NSObject+LocalStorage.h // Created by Avneesh.minocha on 19/05/15. #import typedef NS_ENUM (NSUInteger, kModalType) { kTypeLogin = 1, }; @interface NSObject (LocalStorage) /** * This method is use to save any modal in local storage * * @param type name of modal in a form of enum. */ - ( void )saveLocally:( kModalType )type; /** * This method is use to fetch any modal from local storage * * @param type name of modal in a form of enum. * * @return modal object */ - ( instancetype )fetchLocally:( kModalType )type; /** * This method is use to delete any modal from local storage * * @param type name of modal in a form of enum. */ -( void )removeAllinLocal:( kModalType )type; @end //NSObject+FFLocalStorage.m // Created by Avneesh.minocha on 19/05/15. ...