I have an NSString like so:
@"200hello"
or
@"0 something"
What I would like to be able to do is take the first occuring number in the NSString and convert it into an int.
So that @"200hello" would become int = 200.
and @"0 something" would become int = 0.
See Question&Answers more detail:os