- Home /
Embedding File in iOS Plugin
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];
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
AdMob iOS for Unity 4.1 2 Answers
How to use option setting Vibrate and Mute 1 Answer
What is UnityUpdateDisplayList() function doing? 0 Answers
Application quit shows error in iOS 1 Answer