Custom UITabBar in Monotouch

2019-04-15 21:45发布

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: image of uitabbar

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

Thanks

2条回答
劫难
2楼-- · 2019-04-15 22:06

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.

查看更多
我命由我不由天
3楼-- · 2019-04-15 22:08

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!

查看更多
登录 后发表回答