如何创建一个凸起的标签栏项目,就像在Instagram中发现的? [英] How do you create a raised tab bar item, like is found in Instagram?

查看:167
本文介绍了如何创建一个凸起的标签栏项目,就像在Instagram中发现的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在UITabBar中创建提升的项目?

How do you create a raised item within a UITabBar?

例如,Instagram有:

For example, Instagram has this:

如何实现类似在我的应用程序?

How would I achieve something similar in my application?

推荐答案

iDevRecipes发布了关于如何重新创建最近,虽然它不是由Instagram的开发人员写。请查看此信息。基本思想是创建一个自定义 UIButton ,然后将其添加为标签栏中间上方的子视图(中间的标签是一个虚拟的标签栏项目,什么都不做) 。

iDevRecipes posted about how to go about recreating exactly that recently, although it's not written by Instagram's developers. Check out this post. The basic idea is that you create a custom UIButton then add it as a subview above the middle of the tab bar (the middle tab is a dummy tab bar item that does nothing).

这篇关于如何创建一个凸起的标签栏项目,就像在Instagram中发现的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆