I know this isn’t going to be a challenging exercise, but I thought I’d ask, just in case there’s some methods already in objective-c etc.
In my app I only handle a 2 number version number e.g. 1.5
I want to upgrade this to 4 numbers which could have up to 4 digits.
So I need to handle existing numbers and return true of false when passed database version and the bundle version numbers.
At the moment I simply do
NSString *strOnePointFive = @"1.5";
if (dblDBVersion < [strOnePointFive doubleValue]) {
}
This is a duplicate, was in other formats. Here are some answers to how to handle the version numbers, either equal, greater or below the required version number. Which is answer in this link..