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.
セルが選択されたら、これを実行して色を変更できます。
cell.myLabel.highlightedTextColor = [UIColor redColor];
しかし、セルが押されている間にその色に変更するにはどうすればよいですか?
セルを押すことはできません。同じ機能を得るには、ボタンをカスタム セルに追加するだけです (非表示状態のままにしておきます)。次に、単に初期化して接続します。それから
if(cell.myButton isSelected YES) { //write code to get details about that particular cell whic is selectd!! cell.myLabel.highlightedTextColor = [UIColor redColor]; }