UIWebView-WebStorage 1.0

UIWebView-WebStorage 1.0

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

Maintained by Unclaimed.


Downloads

Total87
Week0
Month0

Installs

Apps7
powered by Segment

GitHub

Stars9
Watchers1
Forks2
Issues0
Contributors2
Pull Requests0

Code

Files2
LOCLines of Code 57


  • 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;