This is a simple solution to convert a string to int
NSString *strNum = @"10"; int num = [strNum intValue];
but when you get the value from the text box,
int num = [txtField.text intValue];
where txtField is the output of UITextField
iAnkit Nov 19 '14 at 6:45 2014-11-19 06:45
source share