From e55ab342fbd1b697855a7334d39855c89408df07 Mon Sep 17 00:00:00 2001 From: zh-m Date: Thu, 15 Sep 2016 11:00:58 +0300 Subject: [PATCH] Fix defaultManager is method in pre iOS10 and property in iOS10+ --- tns-core-modules/file-system/file-system-access.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/file-system/file-system-access.ios.ts b/tns-core-modules/file-system/file-system-access.ios.ts index bfd0fd8a6..c70168601 100644 --- a/tns-core-modules/file-system/file-system-access.ios.ts +++ b/tns-core-modules/file-system/file-system-access.ios.ts @@ -109,7 +109,7 @@ export class FileSystemAccess { public getExistingFolder(path: string, onError?: (error: any) => any): { path: string; name: string } { try { - var fileManager = NSFileManager.defaultManager(); + var fileManager = utils.ios.getter(NSFileManager, NSFileManager.defaultManager); var exists = this.folderExists(path); if (exists) {