๐char to NSString
const char *szTest = "Hello";
NSString *nstrTest = [NSString stringWithUTF8String:szTest];
๐NSString to char
NSString *nstrTest = @"Hello";
const char *szTest = [nstrTest UTF8String];
objective-c์์ c์ธ์ด ํจ์๋ฅผ ํธ์ถํ ๋๋ ํ์ํ ๊ฒ ๊ฐ๋ค.
'objective-c' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Xcode]debug ๋๋ฒ๊น ๊ธฐ๊ณ์ด(๊ธฐ๊ณ์ด๋ก ๋์ฌ ๋ ํด๊ฒฐ ๋ฒ) (0) | 2022.11.09 |
---|---|
[iOS] NSUserDefaults plist ๊ฐ ๋ณด๋ ๋ฐฉ๋ฒ (0) | 2022.09.18 |
[Objective-C] NSString ๋ค๋ฃจ๊ธฐ(๋ฌธ์์ด ๋ค๋ฃจ๊ธฐ) - 1 (0) | 2022.09.15 |