Update FileOpener2.m

Doesnt work on iOS 10
This commit is contained in:
Gillardo 2016-09-30 11:35:29 +01:00 committed by GitHub
parent 3be9cd114f
commit cc90ff7e70

View File

@ -43,7 +43,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
dispatch_async(dispatch_get_main_queue(), ^{
// TODO: test if this is a URI or a path
NSURL *fileURL = [NSURL URLWithString:path];
NSURL *fileURL = [NSURL fileURLWithPath:path];
localFile = fileURL.path;