headerCell

class headerCell : UITableViewCell

A header cell is used to display the like unlike bookmark sidebar

  • This is a UILabel used to display title.

    Declaration

    Swift

    @IBOutlet
    var title: UILabel!
  • This is a UILabel used to display number of times this content being viewed.

    Declaration

    Swift

    @IBOutlet
    var viewCount: UILabel!
  • This is a UILabel used to display number of time this content being liked.

    Declaration

    Swift

    @IBOutlet
    var likes: UILabel!
  • This is a UITextViewused to display the descrption of the content.

    Declaration

    Swift

    @IBOutlet
    var descriptionTextView: UITextView!
  • This is a UILabel used to display number of times this content being disliked.

    Declaration

    Swift

    @IBOutlet
    var disLikes: UILabel!
  • This is a UILabelused to display the channel title

    Declaration

    Swift

    @IBOutlet
    var channelTitle: UILabel!
  • This is a UIImageView used to display the channel picture

    Declaration

    Swift

    @IBOutlet
    var channelPic: UIImageView!
  • This is a UILabel used to display the channelSubsvriber’s name.

    Declaration

    Swift

    @IBOutlet
    var channelSubscribers: UILabel!
  • This is a UIImageView used to display the thumbUp Icon.

    Declaration

    Swift

    @IBOutlet
    var thumbUp: UIImageView!
  • This is a UIImageView used to display the thumbDown Icon.

    Declaration

    Swift

    @IBOutlet
    var thumbDown: UIImageView!
  • This is a UIButton for wikichunk

    Declaration

    Swift

    @IBOutlet
    var sideBarButton: UIButton!
  • This is a UIButton for bookmark

    Declaration

    Swift

    @IBOutlet
    var bookmarkButton: UIButton!
  • This is a variable to store the Content

    Declaration

    Swift

    var content: Content!
  • If the like is tapped

    Declaration

    Swift

    var onLikeTapFunc: (@escaping () -> Void) -> Void
  • If the disliek is tapped

    Declaration

    Swift

    var onDisLikeTapFunc: (@escaping () -> Void) -> Void
  • This is a function to set the content information into the header cell.

    Declaration

    Swift

    func set(content: Content!, onLikeTapFunc: @escaping (@escaping () -> Void) -> Void, onDisLikeTapFunc: @escaping (@escaping () -> Void) -> Void)
  • Change the icon when like is tappedn and increase the number of content like

    Declaration

    Swift

    @objc
    func onLikeTap()
  • Change the icon when dislike is tapped and increase the number of content dislike

    Declaration

    Swift

    @objc
    func onDisLikeTap()
  • Change the icon when bookmark is pressed

    Declaration

    Swift

    @objc
    func bookmarkCurrentContent()
  • Prepares a reusable cell for reuse by the table view'€™s delegate.

    Declaration

    Swift

    override func prepareForReuse()