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 来做到这一点。但是还有另一种方法可以通过使用插图来做到这一点吗?
如果您想要两个图像的“按下按钮”突出显示状态,您可以
button1.highlighted
button2.highlighted = ((UIButton*)sender).highlighted