通过 UIButtons 的 Tabbar 控制器?
我想仅通过 UIButtons 执行像 tabbarController 这样的应用程序,而且我想避免 使用 tabarController。如何为 UIWindow 中的每个按钮定位 viewController?
I want to do application like tabbarController through UIButtons only and also i want to avoid
using tabarController. how can I target viewController for every buttons which is in UIWindow?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在滚动视图中有一组按钮(如果按钮数量超过框架)并为每个按钮设置一个操作来呈现模式视图?
Have a set of buttons in a scrollview (if the number of buttons exceeds the frame) and set each button an action to present the modal view ?
这里的链接向您展示了如何添加
UITabBarController
的彩色图标,似乎有多种在线执行此操作的方法。尝试在您最喜欢的搜索引擎上搜索“uitabbarcontroller 颜色图标”,希望您能找到有关如何执行此操作的更多信息。如果你真的一心想要实现你自己的
UITabBarController
,我建议创建 1 个超级视图,其底部有按钮,并且在每次按下按钮时,在它们上方加载一个新的子视图以使其成为可能。看起来它是一个UITabBarController
。希望有帮助!
Here's a link which shows you how to add coloured icons to the
UITabBarController
, and it seems as though there are multiple ways of doing this online. Try searching for "uitabbarcontroller color icons" on your favourite search engine, and hopefully you'll find more information on how to do this.If you really have your heart set on implementing your own
UITabBarController
, I would suggest making 1 super view which has the buttons on the bottom, and on each button press, load a new subview above them to make it look like it's aUITabBarController
.Hope that Helps!