i am working on an iPhone app, in my project I added an HTML5 page that is a template, and have a webview and want to load it on viewdidload. I can’t seem to be able to access it, I am trying this :
NSArray *documentDirectories = NSSearchPathForDirectoriesInDomains( NSAllApplicationsDirectory, NSUserDomainMask, YES ) ;
NSString *documentDirectory = [ documentDirectories objectAtIndex: 0 ] ;
NSString *longPath = [ documentDirectory stringByAppendingFormat:@"/%@" filename ] ;
I am a bit confused? How can I achieve this? do I need to tell xcode that this html5 needs to be built and sent to a specific folder at runtime? like treated as a resource?
I am new to xcode coming from a .NET environment, so maybe the terminology is a bit awkward.
Thanks
If it’s part of the project it won’t be in the documents directory it’ll be in your application bundle. For example: