This question already has an answer here: ObjectiveC Parse Integer ... To parse string to integer you should do: NSString *a = @"123abc" ...
stackoverflow.com