NSString *a = @"234";
int abc = [a intValue];
…..
doubleValue;
floatValue;
boolValue;
integerValue;
-----------------------------------------------------
NSInteger转换为int:
NSInteger myInteger = 32;
int myInt = myInteger;
NSLog(@"myInt = %d", myInt);
附录:
#if __LP64__ || TARGET_OS_EMBEDDED || TARGET_OS_IPHONE || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64
typedef long NSInteger;
#else
typedef int NSInteger;
#endif