I want to do application like tabbarController through UIButtons only and also i want to avoid using tabarContr开发者_StackOverflowoller. how can I target viewController for every buttons which is in UIWindow?
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 ?
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 a UITabBarController
.
Hope that Helps!
精彩评论