简体   繁体   English

通过UIButtons的Tabbar控制器?

[英]Tabbar controller through UIButtons?

I want to do application like tabbarController through UIButtons only and also i want to avoid using tabarController. 我只想通过UIButtons做像tabbarController这样的应用程序,我也想避免使用tabarController。 how can I target viewController for every buttons which is in UIWindow? 我该如何针对UIWindow中的每个按钮定位viewController?

在滚动视图中是否有一组按钮(如果按钮的数量超出框架),并为每个按钮设置一个动作以呈现模式视图?

Here 'sa 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. 这里的链接向您展示了如何向UITabBarController添加彩色图标,并且似乎有多种在线方法。 Try searching for "uitabbarcontroller color icons" on your favourite search engine, and hopefully you'll find more information on how to do this. 尝试在您喜欢的搜索引擎上搜索“ uitabbarcontroller颜色图标”,希望您会找到有关如何执行此操作的更多信息。

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 a UITabBarController . 如果您真的有心实现自己的UITabBarController ,我建议您制作一个在底部具有按钮的超级视图,并在每次按下按钮时在其上方加载一个新的子视图,以使其看起来像是UITabBarController

Hope that Helps! 希望对您有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM