Skip to content

Add image or button on the headerview #4

Description

@u0324060

How do I add a button or picture to headerview and move it along with it
Here is my code
tableview.addScalableCover(with: UIImage(named: "FullSizeRender.jpg")!)
let imageName = "home-icon-silhouette"
let image = UIImage(named: imageName)
let imageView = UIImageView(image: image!)
self.tableview.tableHeaderView?.addSubview(imageView)
Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions