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
Post a Comment