私がダウンして、これらの線をカットすることができ、トーンたい:36にボタンのプロパティをループで変更しますか? Xcodeの
[button0 addGestureRecognizer:longPress];
[button1 addGestureRecognizer:longPress];
[button2 addGestureRecognizer:longPress];
[button3 addGestureRecognizer:longPress];
[button4 addGestureRecognizer:longPress];
[button5 addGestureRecognizer:longPress];
[button6 addGestureRecognizer:longPress];
[button7 addGestureRecognizer:longPress];
[button8 addGestureRecognizer:longPress];
[button9 addGestureRecognizer:longPress];
など。すべての道を!
おそらくループがありますか?しかし、私はこれを行う方法がわかりません。
ありがとう、 よろしく。
?インタフェースビルダーまたはコードで? – sch
インターフェースビルダー –