需要对栏按钮项目的帮助以x code [英] Need help on bar button item in xcode

查看:139
本文介绍了需要对栏按钮项目的帮助以x code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我有最奇怪的问题。我总是用工具栏和栏按钮项目按钮,永远不会有问题。这里是问题:
我的看法和底部有工具栏。在工具栏上,我创造出的返回按钮和下一步按钮,两个棒按钮项目。出于某种原因,当我打造成了模拟器或iPhone,这些按钮都没有像以前那样敏感。在换句话说,按钮没有真正发挥作用。我发现,当你触摸它,或者用鼠标点击它的按钮半部分(顶部)都在工作。但按钮的另一半(下)不工作的。
任何人有这种问题?

I have the weirdest issue today. I always use toolbar and bar button item button and never have problem. Here is the issue: I have view and the bottom has toolbar. In the toolbar, I create two bar button items which are 'back' button and 'next' button. For some reason, when i build into simulator or iphone, those buttons are not sensitive like before. On other words, the buttons do not really work. I found out that the half part (top) of the buttons are working when you touch it or use mouse cursor to click it. But the other half (down) of the buttons are not working at all. Anybody has this kind of issue?

推荐答案

工具栏的一半意味着状态栏的高度。仔细检查您的视图的高度和改变根据你的状态栏。

Half of the toolbar means status bar's height. Double check your view's height and change according to your status bar.

这篇关于需要对栏按钮项目的帮助以x code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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