¡@

Home 

2014/10/15 ¤U¤È 10:04:46

iphone Programming Glossary: buttontest.xib

Using xib object inside another xib

http://stackoverflow.com/questions/5095359/using-xib-object-inside-another-xib

Thanks Edit So I understand what I asked for at first is not possible. What I'm trying now is like that I created a ButtonTest.xib . Inside the Xib I have a UIView and 3 subviews 2 lables and a button . In the inspector I set the UIView class to ButtonTest.. What I hoped would happen is that the view in ButtonTestViewController.xib would become the view I designed in ButtonTest.xib. This just isn't happening. what happens is that the view inside ButtonTestViewController.xib stays the same. Worth mentioning.. how to do what I want Eventually I would like to have 6 views in ButtonTestViewController.xib all would look like the ButtonTest.xib template and the lables values will be set in code. Edit2 Ok guys I did everything you said and it worked like a charm...