Merge pull request #80 from Gillardo/master

Fixed for iOS 10
This commit is contained in:
pwlin 2016-10-01 00:10:00 +02:00 committed by GitHub
commit f3aba196d6

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(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
// TODO: test if this is a URI or a path // TODO: test if this is a URI or a path
NSURL *fileURL = [NSURL URLWithString:path]; NSURL *fileURL = [NSURL fileURLWithPath:path];
localFile = fileURL.path; localFile = fileURL.path;