Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 7f9bb97

Browse files
committed
Update snippet to use fileURL instead of URL
I was having issues with this returning nil, changing the method to fileURLWithPath fixed it.
1 parent 3724210 commit 7f9bb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documents.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// Language: Objective-C
55
// Completion Scope: Function or Method
66

7-
NSURL *documentsDirectoryURL = [NSURL URLWithString:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]];
7+
NSURL *documentsDirectoryURL = [NSURL fileURLWithPath:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]];

0 commit comments

Comments
 (0)