Skip to content


既読 / 未読インジケーター

未閲覧インジケーターを無効にする

Two Content Cards displayed side by side. The card on the left has a blue line at the bottom, indicating it has not been seen. The card on the right does not have a blue line, indicating it has already been seen.

カードが閲覧されたかどうかを示すカード下部の青い線を無効にするには、ABKContentCardsTableViewControllerdisableUnviewedIndicator プロパティを YES に設定します。

未閲覧インジケーターをカスタマイズする

未閲覧インジケーターには、ABKBaseContentCardCell クラスの unviewedLineView プロパティを使用してアクセスできます。UITableViewCell の実装を使用する場合は、セルが描画される前にプロパティにアクセスする必要があります。

たとえば、未閲覧インジケーターの色を赤に設定するには、次のようにします。

1
((ABKBaseContentCardCell *)cell).unviewedLineView.backgroundColor = [UIColor redColor];
1
(card as? ABKBaseContentCardCell).unviewedLineView.backgroundColor = UIColor.red
「このページはどの程度役に立ちましたか?」
New Stuff!