Commit 1328678c authored by Felix Paul Kühne's avatar Felix Paul Kühne

iOS 6 compatibility fix

parent d7e992d4
......@@ -27,7 +27,8 @@
- (NSString *)relativePathForFullPath:(NSString *)fullPath
NSArray *components = [fullPath componentsSeparatedByString:@"Documents"];
return [components.lastObject stringByRemovingPercentEncoding];
// Note: stringByRemovingPercentEncoding is iOS 7+ only
return [components.lastObject stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment