I need to be able to include an html file in the Assets folder of the xCode project. It has to be embedded in the Bundle so I can access it at runtime. Is there a way to do this? If I can't put it right in the Assets folder of the Bundle, please include the code of how to load it in xCode obj-c at runtime. Similar to this:
NSError *error = nil;
NSString *path = [[NSBundle mainBundle] pathForResource:@"YTPlayerView-iframe-player"
ofType:@"html"
inDirectory:@"Assets"];
NSString *embedHTMLTemplate =
[NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];
↧