View not displaying updated xib
For some reason when i update my xib and save my view loads an older vers开发者_如何转开发ion of the xib...I copied this project folder from a previous version..anyone ran into this issue?
First of all check that you have saved your xib changes. 1. remove your application from simulator or device 2. Delete build folder of your app.(you can see path in xcode,prefrances, building prefrances) 3. Clean All form xcode->product-> Clean. Then run your project.
Try this.It will work
I've seen this problem. It seems like the system wasn't detecting that the XIB had been changed for some reason, and was using the old internal copy of it in the build. IIRC, changing the XIB eventually cleared up the problem, but I had to try several times.
Isn't Xcode wonderful??
I've seen this happen on one of my apps. Somehow I'd accidentally unticked my Target on the .xib file in question, so it wasn't being bundled with the app anymore. Make sure your .xib is a member of your application target, and is listed in the "Copy Bundle Resources" build phase.
At first glance, I would guess that for some reason the new project is storing the paths from the older project you copied from. Perhaps the .xib being loaded in the editor is the one from your older project directory, and the program is loading the .xib from the new directory, or vice versa. Or, on the other hand, maybe its storing a cached version of the .xib that's already in the build? Perhaps doing a clean rebuild by removing all compiled output would remedy the issue?
This happened to me once. I realized I had changed the storyboard name, but didn't change it in the project's summary page, in the section "iPhone/iPod Deplyment Info". Make sure you have the proper name of your storyboard selected there.
Go to Product from menu bar and select Clean and run the application again..Hope it works.
精彩评论