Add a Webview Window to a existent iOS App that loads local stored HTML -


add webview window existent ios app loads local stored html ... working on app loads feed rss , thats done, app needs section can updated on simple manner...

your going want drop webview on in xib, attatch through iboutlet property, , load local stored html following:

nserror *filereaderror = nil;             nsstring *filepath = [[nsbundle mainbundle] pathforresource:@"htmlfilename" oftype:@"html"];             nsstring *filecontents = [nsstring stringwithcontentsoffile:filepath encoding:nsutf8stringencoding error:&filereaderror];              if ( filecontents != nil )             {                 [self.webview loadhtmlstring:filecontents baseurl:nil];             } 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -