//NSString -> int 변환
NSString *str;
str = @"16";
int cnt = [str intValue];
//int -> NSString 변환
int cnt = 16;
NSString * str = [NSString stringWithFormat:@"%d", cnt]
'[ 모바일 관련 ] > 아이폰(iOS)' 카테고리의 다른 글
아이폰 앱 스크린샷 크기 (0) | 2019.02.13 |
---|---|
접속포트 조회 (서버와 POST, GET 통신) (0) | 2019.01.10 |
String 리턴 함수 예제 (0) | 2019.01.10 |
애플 개발자 등록시 Two-factor authentication 이슈 (0) | 2018.12.12 |
iOS - 다른 클래스의 메소드 호출하기 (0) | 2018.12.06 |