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色が変わります。何を入力しますかUISwitchOFFON
UIButton
UISwitch
OFF
ON
- (IBAction) Court1ON { //here }
ストーリーボードで特定のものを参照するにはUIButton?
これを行うには、いくつかの可能性があります。
tagストーリーボードのボタンにa を割り当てます。次に、次の方法でボタンにアクセスします。
tag
[self.view.viewByTag:buttonTag];
IBOutlet @propertyタイプの を作成し、UIButtonそれをボタンにバインドします。
IBOutlet
@property