개발/개발 자료

(Object-C) 기본 데이터형과 NSLog 형식 지시자

시원한물냉 2016. 8. 29. 11:35


기본 데이터형 NSLog 형식 지시자
char %c
short int %hi
unsigned short int %hu
int %i
unsigned int %u
long int %li
unsigned long int %lu
long long int %lli
unsigned long long int %llu
float %f
double %f
long double %lf
id %p
string %@



id 데이터형은 모든 형식을 담을 수 있다.