I'm working thru the BNR book and doing the localization. It's setup for Xcode 3, so I went on the web and found how to setup the xib in Xcode 4.
I ended up with 2 xib files under the original xib, one (English) and one (Spanish)
It displayed the original xib with either lang setting. So I changed BOTH xibs and it did not show the changes...
So I cleaned the project... still doesn't show any changes to either xib with either lang settings.
So I closed Xcode and restarted, power downed the test device... still it doesn't show the changed xib or the spanish xib.
The old xib had a text field 'Name' I changed it to 'English Name' and the spanish xib is 'Nombre'
I run the program and the field is 'Name' which is not in ANY xib!
The strings part works fine! The program converts to spanish when the lang is set.
The only problem is the .xib is not changing, it's like it's reading a .xib from somewhere else.
I even added a new label to one xib and it didn't change on the device or the simulator!
Question 1: how do I stop the debugger from going into .asm code and stay only in ObjC code.
Question 2: how can I follow the debugger into the loading of a .xib file?
Edit: I also loaded the sample code from the book, to see how it worked. The .xib file did the same thing.
Just checked the books sample code, when I change the .xib by adding a new label, it doesn't show on the device!
I ended up with 2 xib files under the original xib, one (English) and one (Spanish)
It displayed the original xib with either lang setting. So I changed BOTH xibs and it did not show the changes...
So I cleaned the project... still doesn't show any changes to either xib with either lang settings.
So I closed Xcode and restarted, power downed the test device... still it doesn't show the changed xib or the spanish xib.
The old xib had a text field 'Name' I changed it to 'English Name' and the spanish xib is 'Nombre'
I run the program and the field is 'Name' which is not in ANY xib!
The strings part works fine! The program converts to spanish when the lang is set.
The only problem is the .xib is not changing, it's like it's reading a .xib from somewhere else.
I even added a new label to one xib and it didn't change on the device or the simulator!
Question 1: how do I stop the debugger from going into .asm code and stay only in ObjC code.
Question 2: how can I follow the debugger into the loading of a .xib file?
Edit: I also loaded the sample code from the book, to see how it worked. The .xib file did the same thing.
Just checked the books sample code, when I change the .xib by adding a new label, it doesn't show on the device!