开发者

How to get an expand-popup while pressing UITabbar

I don't know if this is asked before or if I'm phrasing the question correctly. I can't find any information on google neither.

My question is: How do I get a sort of popup like this whe开发者_如何学运维n I press a tabbarbutton?

How to get an expand-popup while pressing UITabbar


AFAIK, there is nothing built into the sdk that gives you this out-of-the-box. So you'll have to build it yourself. Maybe start by showing a simple view with some buttons in it when the user taps the tab bar. Base this view's frame on which tab bar button was chosen. You'll need to detect taps inside (to choose an item) and outside (to dismiss the pop-up) when the user wants to do something else.


I found out something about NSPopUpButton. I think a bit of experimenting on that should do the trick.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜