1. int => NSNumber
int a = 1;
NSNumber *temp = [NSNumber numberWithInt:a];
2. NSNubmer => int
NSNumber *temp = [NSNumber numberWithInt:1];
int a = [temp IntValue];
'Objective-C' 카테고리의 다른 글
[Objective-C] plist 간단한 사용법 (0) | 2013.02.13 |
---|---|
[Objective-C] CGRectContainsPoint (0) | 2013.02.13 |
[Objective-C] nonatomic 이란? (0) | 2013.02.13 |
[Objective-C] assign, retain, copy 란? (0) | 2013.02.13 |
[Objective-C] may not respond to (0) | 2013.02.13 |