UIWebView-WebStorage 1.0

UIWebView-WebStorage 1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • Colden Prime

UIWebView+WebStorage

UIWebView Category that adds CocoaTouch level hooks to HTML5 web storage.

How to use:

1. Load any URL into a UIWebView.

2. Access that web view's SessionStorage and LocalStorage to your heart's content.

UIWebView Category Interface

SessionStorage from a loaded UIWebView

- (void)setLocalStorageString:(NSString *)string forKey:(NSString *)key;
- (NSString *)localStorageStringForKey:(NSString *)key;
- (void)removeLocalStorageStringForKey:(NSString *)key;
- (void)clearLocalStorage;

LocalStorage from a loaded UIWebView

- (void)setSessionStorageString:(NSString *)string forKey:(NSString *)key;
- (NSString *)sessionStorageStringForKey:(NSString *)key;
- (void)removeSessionStorageStringForKey:(NSString *)key;
- (void)clearSessionStorage;