Xcode如何隐藏按钮 [英] Xcode how to hide buttons

查看:153
本文介绍了Xcode如何隐藏按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个手势,以便当用户双击屏幕时,所有按钮都消失,直到再次双击为止....

I want to create a gesture so that when the user double taps the screen all the buttons disappear until it is then double tapped again....

已经搜索了高低答案,但是我想我需要更加努力...请帮助哈哈

Have searched hi and low for the answer but I guess I need to try harder...PLEASE HELP haha

如果您能分别指定.h和.m中的内容,将不胜感激...

would greatly appreciate it if you could specify what goes in the .h and the .m respectfully...

很抱歉再次提出愚蠢的问题...

sorry for the dumb question once again...

推荐答案

您是否尝试过button.hidden = YES;?

这篇关于Xcode如何隐藏按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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