问题描述
我正在尝试创建一个像Instragram上的菜单一样,并使用特殊设计来创建中心菜单,但是Titanium文档未提供有关此类功能的信息
I am trying to create a menu like the one on Instragram, with the central item using a special design, but the Titanium Documentation does not provide information about this kind of feature
这里有一个示例,其中已经回答了一个问题:但是我需要它在钛合金上工作,有任何线索吗?
There's an example with an already answered question in here: How do you create a raised tab bar item, like is found in Instagram? but I need it working on titanium, any clues?
推荐答案
我认为Instagram是用Objective-C编写的.创建自定义标签栏涉及到对本机标签栏的子类化,但是仅使用JS和Titanium不能做到这一点.
I believe Instagram is written in Objective-C. Creating a custom tab bar as they have made involves subclassing the native tab bar, but you don't have the ability to do that with just JS and Titanium.
这是一个在Titanium中伪造自定义选项卡栏的教程,其中涉及创建带有控制真实选项卡栏的按钮的窗口.
Here's a tutorial for faking a custom tab bar in Titanium, which involves creating a window with buttons that controls the real tab bar.
http://www.samjordan.co.uk/2011/02/tutorial-custom-iphone-tabbar-using-appcelerator-titanium/
这篇关于如何使用Titanium创建凸起的标签栏项目,例如在Instagram中找到的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!