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.
私はこのようなものを作る必要があります(長方形はさまざまな写真を意味します):
2 つの画像から 1 つの画像を作成し、それを UIButton に割り当てることで、これを行うことができることを私は知っています。しかし、インセットを使用してそれを行う別の方法はありますか?
両方の画像で「ボタンが押された」状態を強調表示したい場合は、
button1.highlighted
button2.highlighted = ((UIButton*)sender).highlighted