nicklockwood/StandardPaths — Issue #1: iOS version compare in offlineDataPath
Author: XMLSDK
Created: 2011-11-18 03:49:13+00:00
State: open

I think the iOS version compare in offlineDataPath should be:
if ([[[UIDevice currentDevice] systemVersion] compare:@"5.0.1" options:NSNumericSearch] == NSOrderedAscending)
to allow version older than "5.0.1" to fallback to use /Library/Caches.

NSOrderedAscending == [@"5.0" compare:@"5.0.1" options:NSNumericSearch]
NSOrderedSame == [@"5.0.1" compare:@"5.0.1" options:NSNumericSearch]
NSOrderedDescending == [@"5.0.2" compare:@"5.0.1" options:NSNumericSearch]