{"id":3031,"date":"2014-03-15T01:01:57","date_gmt":"2014-03-15T01:01:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/15\/base-internationalization-and-multiple-storyboard-not-working-right-collection-of-common-programming-errors-2\/"},"modified":"2014-03-15T01:01:57","modified_gmt":"2014-03-15T01:01:57","slug":"base-internationalization-and-multiple-storyboard-not-working-right-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/15\/base-internationalization-and-multiple-storyboard-not-working-right-collection-of-common-programming-errors-2\/","title":{"rendered":"Base internationalization and multiple storyboard not working right-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m playing with multiple storyboards and base localization on xCode 4.6. In fact I<\/p>\n<p>I did:<\/p>\n<p>1) edit my project infos localisations: checked &#8220;Use Base Internationalization&#8221; and added Languages: English, Chinese<\/p>\n<p>2) create a new storyboard called &#8220;anotherstoryboard.storyboard&#8221;<\/p>\n<p>3) localize my new storyboard (File Inspector \/ Localize &#8211; Localize) using Base internationalization.<\/p>\n<p>4) in my app delegate, I load dynamically my localized storyboard, like this:<\/p>\n<pre><code>UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@\"anotherstoryboard\" bundle:nil];\n<\/code><\/pre>\n<p><strong>case 1:<\/strong> =&gt; works<\/p>\n<p>For my new storyboard (step 3) I choose Localization Chinese &#8211; Interface Builder Cocoa Touch Storyboard<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/ZqTlT.png\" \/><\/p>\n<p>It works but now I have to maintain localized storyboard, editing them with IB. I don&#8217;t want such behavior, I just want to use base internationalization and localize .strings files.<\/p>\n<p><strong>case 2:<\/strong> =&gt; crashes<\/p>\n<p>For my new storyboard (step 3) I choose Localization Chinese &#8211; Localizable Strings<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/4hyra.png\" \/><\/p>\n<p>The app crashes saying it can&#8217;t find my storyboard<\/p>\n<pre><code>'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'anotherstoryboard' in bundle NSBundle  (loaded)'\n<\/code><\/pre>\n<p>What I&#8217;m doing wrong ? Why doesn&#8217;t iOS find the right storyboard in case 2 ?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m playing with multiple storyboards and base localization on xCode 4.6. In fact I I did: 1) edit my project infos localisations: checked &#8220;Use Base Internationalization&#8221; and added Languages: English, Chinese 2) create a new storyboard called &#8220;anotherstoryboard.storyboard&#8221; 3) localize my new storyboard (File Inspector \/ Localize &#8211; Localize) using Base internationalization. 4) in my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3031","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3031"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3031\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}