I\'m having trouble converting a string into an integer. I googled it but all I can find is how to convert an int into a string. Does anyone know how to do it the other way
How about
[@"7" intValue];
Additionally if you want an NSNumber you could do
NSNumber
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init]; [numberFormatter numberFromString:@"7"];