mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 03:52:51 +08:00
Fixed 'open in' iOS 9. Contributors: josemanuelbd & Rovi23. It also works in iOS 8.
This commit is contained in:
parent
01c0900696
commit
ac17d43271
@ -43,12 +43,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
NSString *uti = (__bridge NSString *)UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, (__bridge CFStringRef)fileExt, NULL);
|
||||
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||
//NSLog(@"path %@, uti:%@", path, uti);
|
||||
NSLog(@"TRAZAAAAAAAA");
|
||||
NSLog(@"path %@, uti:%@", path, uti);
|
||||
NSURL *fileURL = nil;
|
||||
|
||||
//fileURL = [NSURL URLWithString:path];
|
||||
fileURL = [NSURL fileURLWithPath:path];
|
||||
|
||||
NSLog(@"%@",fileURL);
|
||||
localFile = fileURL.path;
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
Loading…
Reference in New Issue
Block a user