Custom UITabBar in Monotouch

一笑奈何 提交于 2020-01-01 19:50:51

问题


I am trying to create a custom UITabBar. I have the regular UITabBarController working fine, but optimally, I wish to get it looking like this:

What is the best way to approach this? I can't seem to find any useful examples in Monotouch.

Thanks


回答1:


The way I figured to make a tab bar like that, is just a bunch of custom buttons that are arranged and programmed to look like a tab bar, but really they are just buttons. I was able to recreate the instagram tab bar in one of my apps and it looks fairly similar. That's the only way I could figure how to do this type of tab bar when I was teaching myself.

Hope that helps.




回答2:


There are some really good explanations around for how to do custom tab bars - especially on http://idevrecipes.com/2010/12/16/raised-center-tab-bar-button/ - source on https://github.com/boctor/idev-recipes/tree/master/RaisedCenterTabBar

I believe I have seen a github monotouch sample of this same code but I can't find it right now!



来源:https://stackoverflow.com/questions/10218593/custom-uitabbar-in-monotouch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!