iOS & Swift – Making Custom UITabBar Menu (Sort of…)

iPhone custom slider






TOKYO (MacHouse) – For Apple, Inc., as far as iPhone apps are concerned, it’s apparent that looks are more important than features. Forget about painting the back of a fence unlike Mr. Jobs says in his biography, right? If you only use default controls that Xcode offers, chances are that your app won’t even be featured as a new comer to the 1st category of your choice.

Anyway, the other day, I visited stackoverflow as usual, looking for an interesting topic. One of them that I spotted is this one where sombody wants to use color images with UITabBarController. First, I ran a Google search for UITabBarController if I remember correctly and spotted some examples. But I’ve actually decided to go my own way. As a result, I’ve created a horizontal menu with color images at the bottom. Looking at Screenshot 1 below, it’s not that bad.


iOS Swift

Screenshot 1
  iOS Swift

Screenshot 2



The way I did is just use of a UIViewController subclass. So what’s shown in the QuickTime video below is transition from one view controller to another.



Click here to watch a quick iPhone Simulator QuickTime movie.



So if you want to create a custom menu like the one shown in Screenshot 2, first, you need to know how to subclass UIViewController. If you know how, then just transition from one view controller to another within that UIViewController subclass with navigationController’s pushViewController method. Whether you animate view controller transition is up to you.

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.