Convert NSString to int

 
NSString *aNumberString = @"123";

int i = [aNumberString intValue]; 

Convert int to NSString

int aNumber = 123;
NSString *aString = [NSString stringWithFormat:@"%d", aNumber];
posted on 2013-03-09 22:02  aparche  阅读(171)  评论(0编辑  收藏  举报