問題描述
帶有自定義按鈕的故事板 (Storyboard with Custom Buttons)
I have a storyboard setup properly with buttons leading to different scenes, however I'm not happy with how the buttons look. They all have a perfectly square border around the images... like the images are inside a box.
Is there any way I can remove that border and simply have my image in the view, but the image still serves as a button?
‑‑‑‑‑
參考解法
方法 1:
I guess what you want is to use an image as a "button".
- Select the button in storyboard
- In "attibutes inspector", select
- Button, type to "Custom", set the "background" to the image you've added to the project. Should work.
(by Cocos2dfellow、RAX)