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

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -