xamarin.ios - Localization with Storyboard - error when moving storyboards to Base folder -


i trying follow tutorial posted on blog on how localize storyboards

http://blog.xamarin.com/howto-localize-ios-storyboards-monotouch/

when create folder base.lproj , move storyboard, app stops working , following error when run it:

monotouch.foundation.monotouchexception: objective-c exception thrown. name: nsinvalidargumentexception reason: there doesn't seem valid compiled storyboard @ path '/users/daniel/library/application support/iphone simulator/6.1/applications/62404087-7f41-4a27-adbd-4a0010bdd5c8/testingapp.app/mainstoryboard_iphone_checklist.storyboardc' @ at (wrapper managed-to-native) monotouch.uikit.uiapplication:uiapplicationmain (int,string[],intptr,intptr) @ monotouch.uikit.uiapplication.main (system.string[] args, system.string principalclassname, system.string delegateclassname) [0x0004c] in /developer/monotouch/source/monotouch/src/uikit/uiapplication.cs:38 @ testingapp.application.main (system.string[] args) [0x00000] in /users/daniel/documents/github/testingapp/testingapp/ios/testingapp/testingapp/main.cs:17

(when storyboard on root of project, project works fine)

does knows how fix this?

thanks

so here solution/workaround.

instead of setting storyboard on settings, on appdelagate this:

uistoryboard storyboard = uistoryboard.fromname ("base.lproj/mainstoryboard_iphone_checklist", null); 

that way dont exception , localization works fine.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -