¡@

Home 

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

iphone Programming Glossary: buttontestviewcontroller.xib

Using xib object inside another xib

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

to ButtonTest . Inside ButtonTest.m I have 3 outlets for each of the subviews which I connect in IB. Next I have a ButtonTestViewController.xib . Inside it I put one view and set it's class in the inspector to be ButtonTest . I connect that view to a myTextView outlet.. ButtonTest subviewArray objectAtIndex 0 self.myTextView mainView 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.. 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 is that if I add self.view addSubview mainView It does add the new view besides the existing..