Note that there are some explanatory texts on larger screens.

plurals
  1. POBase internationalization and multiple storyboard not working right
    primarykey
    data
    text
    <p>I'm playing with multiple storyboards and base localization on xCode 4.6. In fact I </p> <p>I did:</p> <p>1) edit my project infos localisations: checked "Use Base Internationalization" and added Languages: English, Chinese</p> <p>2) create a new storyboard called "anotherstoryboard.storyboard"</p> <p>3) localize my new storyboard (File Inspector / Localize - Localize) using Base internationalization.</p> <p>4) in my app delegate, I load dynamically my localized storyboard, like this:</p> <pre><code>UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"anotherstoryboard" bundle:nil]; </code></pre> <p><strong>case 1:</strong> => works</p> <p>For my new storyboard (step 3) I choose Localization Chinese - Interface Builder Cocoa Touch Storyboard </p> <p><img src="https://i.stack.imgur.com/ZqTlT.png" alt="enter image description here"></p> <p>It works but now I have to maintain localized storyboard, editing them with IB. I don't want such behavior, I just want to use base internationalization and localize .strings files.</p> <p><strong>case 2:</strong> => crashes</p> <p>For my new storyboard (step 3) I choose Localization Chinese - Localizable Strings </p> <p><img src="https://i.stack.imgur.com/4hyra.png" alt="enter image description here"></p> <p>The app crashes saying it can't find my storyboard</p> <pre><code>'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'anotherstoryboard' in bundle NSBundle &lt;/Users/me/Library/Application Support/iPhone Simulator/6.1/Applications/8E036C84-6058-4420-94B4-1726E1F686AD/HelloWorld.app&gt; (loaded)' </code></pre> <p>What I'm doing wrong ? Why doesn't iOS find the right storyboard in case 2 ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload