开发者

Using TabController Template in Xcode - How to link objects back to the ViewController instead of TabController?

IOS/IB Question - To clarify my question I'll use the following example. I create开发者_开发技巧d a new project using the TabController template. I then create the "IBOutlet UILabel *mylabel" declaration in the header of my first ViewController. I can see the "mylabel" show up in the TabController's "Connections" list in IB's inspector, but the "mylabel" doesn't show up in the FirstViewController's "Connections" list in IB. What's missing.


I just created a new empty tab bar app in Xcode using iOS sdk 4.2, added IBOutlet UILabel *myLabel; to FirstViewController.h, built the app, then opened MainWindow.xib, went to the connections inspector (CMD-2), clicked on the tabbar object, and I don't see myLabel, click on FirstViewController, and I see myLabel like you'd expect.

Sometimes I find that I need to exit IB, buid the project, and restart IB in order for IBOutlets to properly show up in IB.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜