Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image or button on the headerview #4

Open
u0324060 opened this issue Jul 6, 2017 · 1 comment
Open

Add image or button on the headerview #4

u0324060 opened this issue Jul 6, 2017 · 1 comment

Comments

@u0324060
Copy link

u0324060 commented Jul 6, 2017

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!

@sunlubo
Copy link
Owner

sunlubo commented Jul 9, 2017

Use headerView is right, and you also need to modify the scaleCoverView's code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants