Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Embedding File in iOS Plugin

$
0
0
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];

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>