¡@

Home 

2014/10/15 ¤U¤È 10:13:29

iphone Programming Glossary: rightfields

How to use compare on a version number where theres less parts in one number in Objective-C?

http://stackoverflow.com/questions/12308659/how-to-use-compare-on-a-version-number-where-theres-less-parts-in-one-number-in

leftFields NSMutableArray alloc initWithArray leftVersion componentsSeparatedByString @ . NSMutableArray rightFields NSMutableArray alloc initWithArray rightVersion componentsSeparatedByString @ . Implict .0 in case version doesn't have.. componentsSeparatedByString @ . Implict .0 in case version doesn't have the same number of '.' if leftFields count rightFields count while leftFields count rightFields count leftFields addObject @ 0 else if leftFields count rightFields count while.. .0 in case version doesn't have the same number of '.' if leftFields count rightFields count while leftFields count rightFields count leftFields addObject @ 0 else if leftFields count rightFields count while leftFields count rightFields count rightFields..