shopkick应用程序UI小部件 [英] shopkick application UI widgets

查看:111
本文介绍了shopkick应用程序UI小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅以下链接。

http://itunes.apple.com/app/id383298204?mt=8

有showpick应用程序的屏幕截图。在那里有一个收集按钮,这是一些不可能实现在ui标签栏。有人可以帮助我弄清楚它们是如何实现的吗?这是一个真正的UITabBar吗?

There are screen shots of showpick application. In that there is a collect button which is some what impossible to implement under ui tab bar. Can someone help me to figure it out how they have implemented it? Is that an actual UITabBar?

谢谢

推荐答案

我想出了一个解决方法。我基本上添加一个虚拟控制器的UITabBarController的中间条目。在viewDidLoad我添加一个按钮到UITabBar像这样:

I figured out a workaround. I basically add a dummy controller for the middle entry of the UITabBarController. And in viewDidLoad I add a button to the UITabBar like so:

tabBarButton = [[UIButton alloc]initWithFrame:CGRectMake(125, -10, 70, 33)];
[tabBarButton setBackgroundImage:[UIImage imageNamed:@"state-inactive"]forState:tabBarButton];
[topbarButtonScan setBackgroundImage:[UIImage imageNamed:@"state-active"]forState:UIControlEventTouchDown];
[tabBarButton addTarget:self action:@selector(tabBarButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
[[[self tabBarController]tabBar ] addSubview: tabBarButton];

这篇关于shopkick应用程序UI小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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