Get local HTML5 storage items from Objective-C using the startPage method

I write several keys / values ​​in my phonegap application with javascript in html5 localstorage, but I want to access them when my application starts, in particular from my bootstrap method objective-c + (NSString *). I know I can do this from the (void) webViewDidFinishedLoad, but I need to read the values ​​from the startPage method so that I can get the names of the pages that I will store and use as the start page. Is there any way to do this? If not, is there a way to set a start page with a string saved in localstorage? Any suggestion would be greatly appreciated.

+5
source share
1 answer

. , HTML SQLLite , SQLLite, , .

PhoneGap NSUserDefaults . - , , NSUserDefaults , .

0

All Articles