Search This Blog

Wednesday, October 26, 2016

iOS Swift. How to hide empty cells in UITableView

By default empty space in table view displayed as empty cells.


To make this empty space not displayed as empty cells (rows) we need to set table footer as empty UIView
override func viewDidLoad() {
        super.viewDidLoad()
        self.tableView.tableFooterView = UIView()
}

Result


7 comments:

  1. A big shout out to you, such a useful and thought provoking article on Custom WebsiteA straight from an intellectual mind

    ReplyDelete
  2. This is a fantastic article! Thank you very much. These suggestions are desperately needed. The in-depth description is quite helpful. Seeing how you write was quite motivating. Best Custom Websites

    ReplyDelete
  3. Thank you for writing this quality informational content.Your writing technique is impressive and enjoyable to read. I'll come back for more fantastic material.
    Best wishes, and good luck.
    Custom Build Website

    ReplyDelete
  4. Good content. I was looking for this type of content. Saved my time for further search.
    You should always provide that type of content. I appreciate your determination to give the students a good title.Custom Designed Websites

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. This post is quite attractive and well-kept, and it needs to be recognised. Thank you for your time and effort, and please keep the information coming.
    SEO Services NYC

    ReplyDelete