important:
This page references our older Objective-C SDK. Check out our new Swift SDK to integrate our latest Swift-first library.
既読 / 未読インジケーター
未閲覧インジケーターを無効にする
カードが閲覧されたかどうかを示すカード下部の青い線を無効にするには、ABKContentCardsTableViewController
の disableUnviewedIndicator
プロパティを YES
に設定します。
未閲覧インジケーターをカスタマイズする
未閲覧インジケーターには、ABKBaseContentCardCell
クラスの unviewedLineView
プロパティを使用してアクセスできます。UITableViewCell
の実装を使用する場合は、セルが描画される前にプロパティにアクセスする必要があります。
たとえば、未閲覧インジケーターの色を赤に設定するには、次のようにします。
1
((ABKBaseContentCardCell *)cell).unviewedLineView.backgroundColor = [UIColor redColor];
1
(card as? ABKBaseContentCardCell).unviewedLineView.backgroundColor = UIColor.red