开发者

How to specify the view controller classes to be used by UITabBarController?

开发者 https://www.devze.com 2022-12-17 09:05 出处:网络
In interface builder I select the Tab Bar Controller item. The inspector shows me a list of associated view controllers. For any strange reason, I can not define anywhere the exact name for an view co

In interface builder I select the Tab Bar Controller item. The inspector shows me a list of associated view controllers. For any strange reason, I can not define anywhere the exact name for an view controller. I have an DetailsViewController and an SetupViewController. However, I can only select generic nam开发者_开发技巧es such as "Navigation View controller" and this kind of stuff. But I can't put these exact view controllers there.

I also created two View Controller items and associated these with the appropriate classes. Anyways, no way to hook these up with the tabs. What's the trick?


You can change the class of an object in Interface Builder by changing the class name in the Identity tab of the inspector.

alt text http://grab.by/1YQ6

0

精彩评论

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