Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - DennyS

Pages: [1]
FAQs / Re: How to add a background image to a table view
« on: October 08, 2015, 05:31:53 PM »
How about an image above, or at the top of, a tableview that does not scroll up with the tableview.
An image view can be placed above a tableview but it scrolls up and out of sight.

The Apple documentation says how to use a header for sections of a tableview, and it says that a header can be used at the top of a tableview.
How do you put an image in the main header at the top that will not scroll up?

I want the image to stay at the top of the screen when the table is scrolled up.

I have found a way to do it using Objective-C but I want to use Swift.


I have read your books and they have helped me a lot. ( I am a 65 year old retired construction electrician and I put an app in the App Store in May 2015)
My question is about putting an image in a tableview header using Swift.
I mean the tableview itself not a section header.
I would like the image to remain in sight while the tableview scrolls up.
I have seen in Apple's documentation that it can be done but I have not been able to find an example of it in Swift.
Right now my app has an image view added to the top of the tableview and it scrolls up out of sight.

Thank You

Pages: [1]