๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

IOS12

[iOS] WebView ์—์„œ ๋””๋ฒ„๊น… ํ•˜๋Š” ๋ฐฉ๋ฒ• (Safari - ๊ฐœ๋ฐœ์ž์šฉ ํˆด ์‚ฌ์šฉ) ์ด ๊ธ€์—์„œ ์„ค๋ช…ํ•˜๋Š” ๊ฒƒ 1. iOS ์—์„œ ์›น๋ทฐ ๋””๋ฒ„๊น… ํ•˜๋Š” ๋ฐฉ๋ฒ• PC ์›น ๋ธŒ๋ผ์šฐ์ €์—์„œ๋Š” F12 ๋กœ ๊ฐœ๋ฐœ์ž๋„๊ตฌ๋ฅผ ์—ด์–ด ๋””๋ฒ„๊น…์„ ํ•œ๋‹ค. Android ๋Š” Chrome://inspect ๋ฅผ ์‚ฌ์šฉํ•ด ์›น๋ทฐ ๋””๋ฒ„๊น…์„ ํ•œ๋‹ค๋ฉด, iOS ๋Š” Safari ์—์„œ ์ œ๊ณตํ•˜๋Š” ๊ฐœ๋ฐœ์ž์šฉ์„ ์‚ฌ์šฉํ•œ๋‹ค. 2. iOS ์—์„œ ์›น๋ทฐ ์ƒˆ๋กœ๊ณ ์นจ ํ•˜๋Š” ๋ฐฉ๋ฒ• 2.1. ์„œ๋ฒ„์—์„œ ์ฝ”๋“œ ์ˆ˜์ •์„ ํ–ˆ๋Š”๋ฐ, ์ƒˆ๋กœ๊ณ ์นจ ํ•˜๋Š” ๋ฐฉ๋ฒ• 2.2. ์„œ๋ฒ„์—์„œ ์ฝ”๋“œ ์ˆ˜์ •์„ ํ–ˆ๋Š”๋ฐ, ๊ฐ•๋ ฅ ์ƒˆ๋กœ๊ณ ์นจ์„ ํ•˜๋Š” ๋ฐฉ๋ฒ• 1. iOS ์—์„œ ์›น๋ทฐ ๋””๋ฒ„๊น… ํ•˜๋Š” ๋ฐฉ๋ฒ• (ํ…Œ์ŠคํŠธ ํŽ˜์ด์ง€๋Š” https://www.google.com ์œผ๋กœ ํ–ˆ๋‹ค.) 1.1. ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ/๋‹จ๋ง๊ธฐ๋ฅผ ์—ฐ๊ฒฐํ•˜๊ณ  Xcode ์—์„œ command + R ์„ ๋ˆŒ๋Ÿฌ ๋Ÿฐํ•œ๋‹ค. 1.2. ์•ฑ์ด ๋œจ๊ณ  ์›น๋ทฐ ์ฐฝ์ด ๋œจ๋ฉด Safari ๋ฅผ ๋ˆŒ๋Ÿฌ ์ƒ๋‹จ์˜.. 2021. 10. 21.
[iOS] Objective-C NSString -> char* ๊ณผ char* -> NSString // char* -> NSString char szText[] = "hello World"; NSString* nsStr = [NSString stringWithUTF8String: szText]; // NSString -> char* NSString* nsStr = @"hello World"; char* strTmp = (char*)[nsStr UTF8String]; // NSString -> unsigend char* NSString* nsStr = @"hello World"; unsigned char* strTmp = (unsigned char*)[nsStr UTF8String]; // NSString ๊ธธ์ด ๊ตฌํ•˜๊ธฐ NSString* nsStr2 = @"check length!"; int nLengt.. 2021. 10. 21.
์˜ค๋Š˜์˜ ์•Œ์•„๋‘๋ฉด ์“ธ ๋ฐ ์žˆ๋Š” ์ •๋ณด - iOS ๋ฒ ํƒ€๋ฒ„์ „๊ณผ ์‚ผ์„ฑ์นด๋“œ ์•ฑ [์˜ค๋Š˜์˜ ์•Œ์•„๋‘๋ฉด ์“ธ ๋ฐ ์žˆ๋Š” ์ •๋ณด - iOS ๋ฒ ํƒ€๋ฒ„์ „๊ณผ ์‚ผ์„ฑ์นด๋“œ ์•ฑ] ์ง€๋‚œ ๋‹ฌ์— iOS15 ๊ฐ€ ๋‚˜์˜จ๋‹ค๊ณ  ํ•ด์„œ iOS 15.0 Developer Beta ๋ฒ„์ „์„ ๋ฐ›์•˜๋‹ค. https://betaprofiles.com/ ๊ทธ๋Ÿฌ๊ณ  ๋‚˜์„œ ๋ชจ๋ฐ”์ผ ํ™˜๊ฒฝ์—์„œ ์ƒํ’ˆ ๊ฒฐ์ œ๋ฅผ ํ•˜๊ธฐ ์œ„ํ•ด ์‚ผ์„ฑ์นด๋“œ ์•ฑ์„ ์“ฐ๋Š”๋ฐ... ํŠ•๊น€... ๋ง‰ ํŠ•๊น€..... ใ… ใ… ใ…  ๊ณ ๊ฐ์„ผํ„ฐ์— ๋ฌธ์˜ํ•˜๋‹ˆ ์‚ผ์„ฑ์นด๋“œ๋Š” ๋ฒ ํƒ€๋ฒ„์ „์€ ์ง€์›ํ•˜์ง€ ์•Š๋Š”๋‹ค๊ณ  ํ•œ๋‹ค... ์•ฑ์นด๋“œ๊ฐ€ ํŽธํ•œ๋ฐ, ์‚ฌ์šฉํ•  ์ˆ˜๊ฐ€ ์—†์œผ๋‹ˆ.. ์ •์‹ ๋ฒ„์ „์ด ๋‚˜์˜ค๊ธฐ ์ „๊นŒ์ง€ ์•ฝ ์ด์‚ผ์ฃผ ๊ฐ€๋Ÿ‰ ์‚ผ์„ฑ์นด๋“œ ์•ฑ์นด๋“œ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†์–ด ๊ต‰์žฅํžˆ ๋ถˆํŽธํ–ˆ๋‹ค๋Š” ์ •๋ณด~ ใ…  ์‹ ํ•œ์ , ์‹ ํ•œํ”Œ๋ ˆ์ด, ์นด์นด์˜ค๋ฑ…ํฌ, ์นด์นด์˜คํŽ˜์ด๋Š” ์‚ฌ์šฉ์ด ๊ฐ€๋Šฅํ–ˆ๋˜ ๊ฑธ๋กœ ๊ธฐ์–ต~ ๊ตํ›ˆ : ํ•จ๋ถ€๋กœ ๋ฒ ํƒ€๋ฒ„์ „์„ ๋ฐ›์ง€ ๋ง์ž.. ์ž˜ ์“ฐ๋˜ ์€ํ–‰ ์•ฑ์ด ๋ป—์„ ์ˆ˜ ์žˆ๋‹ค 2021. 10. 18.
[iOS] Objective-C NSString์˜ ๊ฐ’์„ null ์ฒดํฌํ•˜๋Š” ๋ฐฉ๋ฒ• NSString *nsStr = @"Hello World"; if ([nsStr isEqual: [NSNull null]]) printf("null"); else printf("not null"); https://stackoverflow.com/questions/19546920/how-to-check-nsstring-is-null-or-not how to Check NSString is null or not I want to check weather a NSString is null or not. Im assigning from an JSON array. After assigning that string value is . Now I want to check this string is null or no.. 2021. 10. 13.