SSamTure.net

워드프레스

[objective-c]형 변환

int -> String
int 정수형 = 3;
NSString *스트링 = [NSString stringWithFormat:”%d”, 정수형];

String -> int
int 정수형 = [스트링 intValue];

Leave a Reply

Your email address will not be published. Required fields are marked *