How to convert string to int using Objective-C

To convert string to int using Objective-C you can use the snippet below.

Sample Objective-C

[myString intValue];

or you can do it like this.

myString.intValue;

Please Share us:
Please rate this snippet

3 thoughts on “How to convert string to int using Objective-C

Leave a Reply