mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 15:06:06 +00:00
Ajustements iOS
This commit is contained in:
parent
cf275c0493
commit
cfdea61926
2 changed files with 3 additions and 1 deletions
|
|
@ -23,6 +23,8 @@ namespace AideDeJeu.iOS
|
|||
//
|
||||
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
|
||||
{
|
||||
Xamarin.Essentials.ExperimentalFeatures.Enable(Xamarin.Essentials.ExperimentalFeatures.ShareFileRequest);
|
||||
|
||||
Rg.Plugins.Popup.Popup.Init();
|
||||
|
||||
global::Xamarin.Forms.Forms.Init();
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace AideDeJeu.iOS
|
|||
|
||||
void LoadFile(string fileName)
|
||||
{
|
||||
string filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), string.Format("pdf/{0}", WebUtility.UrlEncode(fileName)));
|
||||
string filePath = Path.Combine(Xamarin.Essentials.FileSystem.CacheDirectory, string.Format("pdf/{0}", WebUtility.UrlEncode(fileName)));
|
||||
Control.LoadRequest(new NSUrlRequest(new NSUrl(filePath, false)));
|
||||
Control.ScalesPageToFit = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue