Convert a string into an int

See the NSString Class Reference.

NSString *string = @"5";
int value = [string intValue];

Leave a Comment