2012年10月7日 星期日

XCODE 4.6 多國語言問題排除

按照XCODE國際化的作法做完之後,發現並不會自動切換

網路查到解決的方式

http://stackoverflow.com/questions/4297051/nslocalizedstring-problem

If you use xCode 4 you will face with such problem. Try next steps:

  1. Remove application from device
  2. Select root node of project tree to get project's properties
  3. Select "Build Phases" tab
  4. Click "Add build phase" and select "Copy files"
  5. Select "Resources" in "Copy files" view
  6. Add Localizable.strings file
  7. Perform "Clean" for the project
  8. "Build and Run"

事實上不用做這麼多

只要兩個步驟:

1.從裝置移除應用程式

2.Product->Clear

image

Loading...