I have a .xib file. I open it with a text file or Dashcode or something else.
Let's say that it has 4 buttons. Anyway, but with different names.
My goal is to automatically change the color, font, and background image outside of xcode, and then import the file into xcode.
However, these things are represented by a reference number, which, apparently, cannot find a place in the folder of my project, connecting it with the actual image, color or font.
<reference key="IBUINormalBackgroundImage" ref="650551563"/>
So the button looks like this:
` <object class="IBUIButton" id="580622739"> <reference key="NSNextResponder" ref="191373211"/> <int key="NSvFlags">292</int> <string key="NSFrame">{{20, 124}, {280, 37}}</string> <reference key="NSSuperview" ref="191373211"/> <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="810145050"/> <bool key="IBUIOpaque">NO</bool> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <int key="IBUIContentHorizontalAlignment">0</int> <int key="IBUIContentVerticalAlignment">0</int> <reference key="IBUIFont" ref="881065587"/> <int key="IBUIButtonType">1</int> <string key="IBUINormalTitle">Facebook</string> <reference key="IBUIHighlightedTitleColor" ref="587412318"/> <reference key="IBUINormalTitleColor" ref="523599070"/> <reference key="IBUINormalTitleShadowColor" ref="457053782"/> <reference key="IBUINormalBackgroundImage" ref="650551563"/> </object>
`
EDIT: based on some answers. Now I can drag xib into xcode. But when I make a new application, I want to use the existing xib, but with different colors. I will use php to automatically create this code file. Then just drag it back. I have done this for all of my .h and .m and viewcontrollers. I need to understand this .xibs.
source share