Tuesday, August 21, 2012

Xcode how to convert String to Integer for Noob

Here is Xcode how to convert String to Integer


int temp2 = [temp1 intValue];


Let say your temp1 is a String with value "100" it will convert into integer 100 in temp2

No comments:

Post a Comment