Fixed 'open in' iOS 9. Contributors: josemanuelbd & Rovi23. It also works in iOS 8.

This commit is contained in:
Jose Bermudo 2015-09-23 17:57:28 +02:00
parent ac17d43271
commit 88fdbbdfcd

View File

@ -43,13 +43,12 @@ 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(@"TRAZAAAAAAAA");
NSLog(@"path %@, uti:%@", path, uti);
//NSLog(@"path %@, uti:%@", path, uti);
NSURL *fileURL = nil;
//fileURL = [NSURL URLWithString:path];
fileURL = [NSURL fileURLWithPath:path];
NSLog(@"%@",fileURL);
fileURL = [NSURL URLWithString:path];
//NSLog(@"%@",fileURL);
localFile = fileURL.path;
dispatch_async(dispatch_get_main_queue(), ^{