To keep it in sync with how you started...
int major, minor, bug;
NSArray *versionItems = [version componentsSeparatedByString:@"."];
major = [[versionItems objectAtIndex:0] intValue];
minor = [[versionItems objectAtIndex:1] intValue];
bug = [[versionItems objectAtIndex:2] intValue];
But I'd recommend looking at this..
How do I determine the OS version at runtime in OS X or iOS (without using Gestalt)?