Even simpler than Andrey Z’s reply:
Simply make a bogus tableFooterView in your UITableView class:
self.tableFooterView = [UIView new]; // to hide empty cells
and Swift:
tableFooterView = UIView()
More Related Contents:
- Can you animate a height change on a UITableViewCell when selected?
- Async image loading from url inside a UITableView cell – image changes to wrong image while scrolling
- UITableView example for Swift
- Is it possible to add UITableView within a UITableViewCell
- Eliminate extra separators below UITableView
- How to customize the background/border colors of a grouped table view cell?
- How do you load custom UITableViewCells from Xib files?
- Having a UITextField in a UITableViewCell
- -didSelectRowAtIndexPath: not being called
- What is NSLayoutConstraint “UIView-Encapsulated-Layout-Height” and how should I go about forcing it to recalculate cleanly?
- UITableViewCell, show delete button on swipe
- How to customize the background color of a UITableViewCell?
- How can I disable the UITableView selection?
- Hide separator line on one UITableViewCell
- Change Default Scrolling Behavior of UITableView Section Header
- Swipe to Delete and the “More” button (like in Mail app on iOS 7)
- How to determine UIWebView height based on content, within a variable height UITableView?
- How to scroll to the bottom of a UITableView on the iPhone before the view appears
- UITableView row animation duration and completion callback
- Loading an image into UIImage asynchronously
- UITableView – change section header color
- Using a custom image for a UITableViewCell’s accessoryView and having it respond to UITableViewDelegate
- One timer per table view cell
- How can I set a UITableView to grouped style
- Loading a Reusable UITableViewCell from a Nib
- Setting scroll position in UITableView
- How to limit UITableView row reordering to a section
- UISearchController persisting after segue
- Pass data through segue
- Catch an exception for invalid user input in swift