I have an NSString
of length
4. Logically, this should work, and expYear
does, but expMonth
throws an out of bounds exception?
expYear = [expDate substringWithRange:NSMakeRange(0, 2)];
expMonth = [expDate substringWithRange:NSMakeRange(2, 3)];