@implementation NSString(iVersion)
(NSComparisonResult)compareVersion:(NSString *)version
{
return [self compare:version options:NSNumericSearch];
}(NSComparisonResult)compareVersionDescending:(NSString *)version
{
return (NSComparisonResult)(0 - [self compareVersion:version]);
}
@end