Skip to content

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

License

Notifications You must be signed in to change notification settings

cprime/UIWebView-WebStorage

Repository files navigation

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;

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published