// // NSString+Version.m // FAW-VW // // Created by ChenYu Xiao on 12-6-25. // Copyright (c) 2012年 Sumi Interactive. All rights reserved. // #import "NSString+Version.h" @implementation NSString (Version) - (BOOL)isOlderVersionThan:(NSString *) otherVersion { return ([self compare:otherVersion options:NSNumericSearch] == NSOrderedAscending); } - (BOOL)isNewerVersionThan:(NSString *) otherVersion { return ([self compare:otherVersion options:NSNumericSearch] == NSOrderedDescending); } @end