About 78,800 results
Open links in new tab
  1. Swift - how to make custom header for UITableView?

    Aug 12, 2015 · If you are using custom cell as header, add the following. func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { let headerView = UIView() let headerCell = tableView.dequeueReusableCell(withIdentifier: "customTableCell") as!

  2. Create a Custom UITableViewCell with Swift - Programming With Swift

    Apr 5, 2020 · UITableViews are one of the most commonly used views in iOS development. It is often the case that one will want to create a custom UITableViewCell, so in this tutorial I will show you how to create custom UITableViewCells.

  3. ios - UITableView example for Swift - Stack Overflow

    Oct 20, 2015 · Drag a UITableView onto your View Controller. Use auto layout to pin the four sides. Control drag from the Table View in IB to the tableView outlet in the code. That's all. You should be able run your app now. This answer was tested with …

  4. UITableViewCell | Apple Developer Documentation

    Differentiate groups of rows visually by adding header and footer views to your table view’s sections.

  5. ios - Custom UITableViewCell from nib in Swift - Stack Overflow

    Jun 6, 2017 · Here's my approach using Swift 2 and Xcode 7.3. This example will use a single ViewController to load two .xib files -- one for a UITableView and one for the UITableCellView. For this example you can drop a UITableView right into an empty TableNib.xib file.

  6. Creating a sticky header for a UITableView | by Jeremy Sh

    Sep 16, 2016 · Jump to the ViewController.swift file and add a tableview property and a custom header property. class ViewController: UIViewController {var tableView:UITableView!

  7. How to add header/footer view to UITableView in Storyboard

    Dec 16, 2019 · In this tutorial you will learn how to add a header and a footer view to a UITableView. There are two ways that we can add the header and footer, one way is to add it in using Interface Builder and the other way is to do it with code.

  8. UITableView tutorial in Swift - The.Swift.Dev

    Dec 1, 2018 · This guide is made for beginners to learn the foundations of the UITableView class programmatically with auto layout in Swift.

  9. Customize Your UITableViewCells like a Pro in Swift: A Step-by …

    Jun 1, 2024 · In this article, we’ve covered the basics of customizing your UITableViewCells in Swift. By subclassing UITableViewCell and overriding its methods, you can create unique cells that fit your app’s design and functionality.

  10. Using Custom cells to customize UITableViewCells – iOS & Swift Example

    Oct 9, 2021 · This tutorial shows how to use the cell style Custom in a Storyboard to customize the views of a UITableView cell: Download Countries-cells.zip as a starter project. This contains a UITableViewController with regular cells. Make yourself familiar with the code. If it is not straightforward to you, have a look at the UITableViewController tutorial.

  11. Some results have been removed
Refresh