We can get the integer value from NSString using the property of NSString 'intValue'. Xcode snippet to get the integer value from NSString is given below:
NSString *string = @"5";
int value = [string intValue];