iPhone - 以编程方式创建UITabBar? [英] iPhone -- create UITabBar programmatically?

查看:99
本文介绍了iPhone - 以编程方式创建UITabBar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何做到这一点?

请注意,我想要一个控制器。只是一个标签栏。

Note that I do not want a controller. Just a tab bar.

推荐答案

UITabBar * aTabBar = [[UITabBar alloc] initWithFrame:aFrame];

您可能需要参考类文档,例如 -setItems:animated:等方法。另请参阅 UITabBarDelegate 协议。

You’ll probably need to refer to the class documentation for instance methods like -setItems:animated:. Also, see the UITabBarDelegate protocol.

这篇关于iPhone - 以编程方式创建UITabBar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆