iOS: How do I put an image on top of the tableView like iBook

831 views Asked by At

If you scroll all the way up on the iBook, you can see an apple mark (above search and two buttons). How can you put such image on top of the TableView?

My first guess is that apple just used an image as its background and somehow aligned it right. Am I on right track?

1

There are 1 answers

1
Noah Witherspoon On

It's a UIImageView, either set as a tableHeaderView (check the docs) with the table given negative-top contentInset, or just added as a subview of the table view itself. The latter's probably simpler—just set the image view's position to something with a negative Y value.