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.
アプリにボタンがあり、現在IBActionがInterface Builderを介して接続されていますが、コードで宣言できるようにアウトレットを接続する必要がありbutton.hidden = yesますが、ボタンにはボタンしかありません。 IBAction、アウトレットとアクションをボタンに設定するにはどうすればよいですか?ありがとう!
button.hidden = yes
Control を押したまま、ボタンを interface() セクションにドラッグします。または、最初にアウトレットを宣言し、ボタンを右クリックすると、これらのプロパティを選択できるメニューが表示されます。
あなたのコードは
そして私のコードはbutton.hidden = YES;
button.hidden = YES;
これで問題が解決することを願っています。