{"id":140,"date":"2025-10-04T10:41:16","date_gmt":"2025-10-04T01:41:16","guid":{"rendered":"https:\/\/devserver.kr\/blog\/?p=140"},"modified":"2025-10-04T10:41:16","modified_gmt":"2025-10-04T01:41:16","slug":"ios-coregraphic","status":"publish","type":"post","link":"https:\/\/devserver.kr\/blog\/ios\/ios-coregraphic\/","title":{"rendered":"iOS CoreGraphic"},"content":{"rendered":"\n<div class=\"wp-block-jetpack-markdown\"><h2>New file &gt; Strings \u201cLocalizable.strings\u201d \ud30c\uc77c \ud558\ub098 \ub9cc\ub4e4\uc5b4 \uc900\ub2e4.<\/h2>\n<h2>Localizable.strings \uc120\ud0dd\ud558\uace0 inspector \uc5d0\uc11c [Localize] \ud074\ub9ad\ud558\uba74 \uae30\ubcf8 English \ub098\ud0c0\ub09c\ub2e4.<\/h2>\n<p>\ud504\ub85c\uc81d\ud2b8\uc758 info \uc5d0 \uac00\uc11c PROJECT\uc5d0\uc11c\nLocalization \uc5d0\uc11c [+] \ud074\ub9ad \ud6c4, korean \uc120\ud0dd!<\/p>\n<p>Localizable.strings \uc5d0 \uac00\uba74 \ud558\uc704\uc5d0 English, korean \uc774 \uc788\ub2e4.<\/p>\n<p>\uac01 \ud30c\uc77c\uc740 Key = value; \ud615\ud0dc\ub85c \ubb38\uc790\uc5f4\ub4e4\uc744 \uc9c0\uc815, \uc791\uc131\ud558\uba74 \ub41c\ub2e4.<\/p>\n<p>\ucd9c\ub825\ud560 \ub54c\ub294<\/p>\n<pre><code class=\"language-swift\">\nlabel.text = &quot;Hello&quot;\n\n<\/code><\/pre>\n<p>\ud558\uba74 \ubb34\uc870\uac74 Hello \uac00 \ud45c\uc2dc\ub41c\ub2e4. \ub85c\uce7c\ub77c\uc774\uc9d5\ub41c \ubb38\uc790\uc5f4\uc744 \ucd9c\ub825\ud558\ub824\uba74\u2026<\/p>\n<p>Localizable.string(English)<\/p>\n<pre><code>&quot;Hello&quot; = &quot;Hello&quot;;\n\n<\/code><\/pre>\n<p>Localizable.string(Korean)<\/p>\n<pre><code>&quot;Hello&quot; = &quot;\uc548\ub155&quot;;\n\n<\/code><\/pre>\n<p>\uc704 \ucc98\ub7fc \uc791\uc131\ud574\ub193\ub294\ub2e4.<\/p>\n<p>\uadf8\ub9ac\uace0, \uc544\ub798\ucc98\ub7fc \uc791\uc131\ud558\uba74 \ud3f0\uc5d0 \uc124\uc815\ub41c \uc5b8\uc5b4\uc5d0 \ub9de\ucdb0\uc11c \ub85c\uce7c\ub77c\uc774\uc988\ub4dc \ubb38\uc790\uc5f4\uc774 \ucd9c\ub825\ub41c\ub2e4.<\/p>\n<pre><code class=\"language-swift\">label.text = NSLocalizedString(&quot;Hello&quot;, comment: &quot;&quot;)\n\n\n<\/code><\/pre>\n<p>NSLocalizedString()\uc744 \ud56d\uc0c1 \uc0ac\uc6a9\ud558\uae30\uc5d0 \ucf54\ub4dc \uc791\uc131\uc774 \ubd88\ud3b8\ud558\ub2c8\uae4c, String \uc5d0\ub2e4 extension \uc744 \ub9cc\ub4e4\uc5b4\ub450\uace0 \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<pre><code class=\"language-swift\">extension String {\n  var localized: String {\n    return NSLocalizedString(self, tableName: &quot;Localizable&quot;, value: &quot;**\\(self)**&quot;, comment: &quot;&quot;)\n  }\n  \n  func localized(bundle: Bundle = .main, tableName: String = &quot;Localizable&quot;) -&gt; String {\n    return NSLocalizedString(self, tableName: tableName, value: &quot;**\\(self)**&quot;, comment: &quot;&quot;)\n  }\n  \n}\n\n\/\/ \uc0ac\uc6a9\ubc95\n&quot;Hello&quot;.localized\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,7],"tags":[],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-ios","category-swift"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":1,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions\/141"}],"wp:attachment":[{"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devserver.kr\/blog\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}