headerCell
class headerCell : UITableViewCell
A header cell is used to display the like unlike bookmark sidebar
-
This is a
UILabelused to display title.Declaration
Swift
@IBOutlet var title: UILabel! -
This is a
UILabelused to display number of times this content being viewed.Declaration
Swift
@IBOutlet var viewCount: UILabel! -
This is a
UILabelused 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
UILabelused to display number of times this content being disliked.Declaration
Swift
@IBOutlet var disLikes: UILabel! -
This is a
UILabelused to display the channel titleDeclaration
Swift
@IBOutlet var channelTitle: UILabel! -
This is a
UIImageViewused to display the channel pictureDeclaration
Swift
@IBOutlet var channelPic: UIImageView! -
This is a
UILabelused to display the channelSubsvriber’s name.Declaration
Swift
@IBOutlet var channelSubscribers: UILabel! -
This is a
UIImageViewused to display the thumbUp Icon.Declaration
Swift
@IBOutlet var thumbUp: UIImageView! -
This is a
UIImageViewused to display the thumbDown Icon.Declaration
Swift
@IBOutlet var thumbDown: UIImageView! -
This is a
UIButtonfor wikichunkDeclaration
Swift
@IBOutlet var sideBarButton: UIButton! -
This is a
UIButtonfor bookmarkDeclaration
Swift
@IBOutlet var bookmarkButton: UIButton! -
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()
headerCell Class Reference