Binh Le
Binh Le

Reputation: 363

How to insert custom view on the bottom of tableview?

In the case of loss network, I'd like to insert a custom view on the bottom of table view but not overlap the table view. This custom view still appear even the user leave their finger on screen and only disappear after a period of time or network come backs. It likes the behaviour of Facebook app. How can I do that?

enter image description here

Upvotes: 1

Views: 1311

Answers (2)

seggy
seggy

Reputation: 1196

//Give size of view as u want 
let customView = UIView(frame: CGRectMake(0, 0, 200, 50))

//add this view in footer section of tableview
youTableview.tableFooterView = customView

Upvotes: 3

KKRocks
KKRocks

Reputation: 8322

You can do set footer as per below screenshot.

enter image description here

Upvotes: 0

Related Questions