Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在屏幕上有一组不可见的 UIButton。当我说不可见时,我的意思是在没有图像的情况下设置为“自定义”。我想让当按钮被按下时它会发光 1 秒钟,以便用户可以看到他按下了一个按钮。我怎样才能做到这一点?
使用空白图像UIControlStateNormal。制作一个图像,UIControlStateHighlighted它是你的光芒。
UIControlStateNormal
UIControlStateHighlighted
重新考虑这个设计,因为它听起来不太适合 iOS 7 的发展方向。