Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Does anyone know how to reference Library/Caches directory as baseUrl for UIWebView in C#?

Normally you would use

C#
NSUrl baseUrl = new NSUrl (NSBundle.MainBundle.BundlePath, true);
Posted

1 solution

C#
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)

and you have the "install directory" where you can store some html. (Add the html to the solution)
 
Share this answer
 
Comments
bfb 26-Jan-15 9:46am    
What is Assembly? What do you mean with "install directory"? Is it the MainBundle (app directory)? Is the Library directory under the "install directory"?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900