Загрузка страницы

Setting up a TableView in iOS - TableViews in iOS - raywenderlich.com

Learn all about table views: one of the most common tools in iOS development. Display and manipulate data in customizable table views while practicing fundamental concepts used across iOS & UIKit.
Intermediate iOS developers who want to do more with their UITableViews. It expects you to have familiarity with creating user interfaces with Storyboards in Interface Builder, the concept of Dynamic Type, and some basics of SwiftUI.
From Apple's Documentation:

Table views on iOS display a single column of vertically scrolling content, divided into rows. Each row in the table contains one piece of your app’s content. For example, the Contacts app displays the name of each contact in a separate row, and the main page of the Settings app displays the available groups of settings. You can configure a table to display a single long list of rows, or you can group related rows into sections to make navigating the content easier.

Tables are commonly used by apps whose data is highly structured or organized hierarchically. Apps that contain hierarchical data often use tables in conjunction with a navigation view controller, which facilitates navigation between different levels of the hierarchy. For example, the Settings app uses tables and a navigation controller to organize the system settings.

UITableView manages the basic appearance of the table, but your app provides the cells (UITableViewCell objects) that display the actual content. The standard cell configurations display a simple combination of text and images, but you can define custom cells that display any content you want. You can also supply header and footer views to provide additional information for groups of cells.

Adding a Table View to Your Interface

To add a table view to your interface, drag a Table View Controller (UITableViewController) object to your storyboad. Xcode creates a new scene that includes both the view controller and a table view, ready for you to configure and use.

Table views are data driven, normally getting their data from a data source object that you provide. The data source object manages your app’s data and is responsible for creating and configuring the table’s cells. If the content of your table never changes, you can configure that content in your storyboard file instead.

For information about how to specify your table’s data, see Filling a Table with Data.

Saving and Restoring the Table's Current State

Table views support UIKit app restoration. To save and restore the table’s data, assign a nonempty value to the table view’s restorationIdentifier property. When its parent view controller is saved, the table view automatically saves the index paths for the currently selected and visible rows. If the table’s data source object adopts the UIDataSourceModelAssociation protocol, the table stores the unique IDs that you provide for those items instead of their index paths.

For information about how to save and restore your app’s state information, see Preserving Your App's UI Across Launches.

Видео Setting up a TableView in iOS - TableViews in iOS - raywenderlich.com канала raywenderlich.com
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
26 августа 2020 г. 8:30:33
00:04:23
Другие видео канала
Add a Datasource to a TableView in iOS - TableViews in iOS - raywenderlich.comAdd a Datasource to a TableView in iOS - TableViews in iOS - raywenderlich.comUnderstand Concurrency in iOS - An Introduction to Networking with URLSession and SwiftUIUnderstand Concurrency in iOS - An Introduction to Networking with URLSession and SwiftUIConfiguring the Layout Object - Beginning CollectionViews in iOS - Swift 5, Xcode 11 - raywenderlichConfiguring the Layout Object - Beginning CollectionViews in iOS - Swift 5, Xcode 11 - raywenderlichGetting Started Publishing to the iOS App Store - raywenderlich.comGetting Started Publishing to the iOS App Store - raywenderlich.comRun Code on the Main Thread - An Introduction to Networking with URLSession and SwiftUIRun Code on the Main Thread - An Introduction to Networking with URLSession and SwiftUISession Tasks - Networking With URLSession - raywenderlich.comSession Tasks - Networking With URLSession - raywenderlich.comTable View Cells - Beginning Table Views with Xcode 10, iOS 12, Swift 4.2 - raywenderlich.comTable View Cells - Beginning Table Views with Xcode 10, iOS 12, Swift 4.2 - raywenderlich.comHow to Create TableView in Xcode 11 (Swift 5)How to Create TableView in Xcode 11 (Swift 5)Relationships - Beginning Core Data - raywenderlich.comRelationships - Beginning Core Data - raywenderlich.comCustomizing Collection Views in iOS 11 with Swift 4 and Xcode 9 - raywenderlich.comCustomizing Collection Views in iOS 11 with Swift 4 and Xcode 9 - raywenderlich.comLearn Concurrency in iOS - An Introduction to Networking with URLSession and SwiftUILearn Concurrency in iOS - An Introduction to Networking with URLSession and SwiftUIAdvanced Auto Layout - 2016 RWDevCon Session - raywenderlich.comAdvanced Auto Layout - 2016 RWDevCon Session - raywenderlich.comThe NSFileManager - Saving Data in iOS - raywenderlich.comThe NSFileManager - Saving Data in iOS - raywenderlich.comEncoding and Decoding Objects - Saving Data in iOS - raywenderlich.comEncoding and Decoding Objects - Saving Data in iOS - raywenderlich.comConstraints - Introduction to Adaptive Layout - raywenderlich.comConstraints - Introduction to Adaptive Layout - raywenderlich.comClasses vs. Structures in Swift 4, Xcode 9, and iOS 11 - raywenderlich.comClasses vs. Structures in Swift 4, Xcode 9, and iOS 11 - raywenderlich.comAnimate Dynamically Created Views - Introduction to Animation in iOS with Auto Layout - Swift 5.2Animate Dynamically Created Views - Introduction to Animation in iOS with Auto Layout - Swift 5.2Animating Constraint Constants - Introduction to Animation in iOS with Auto Layout - Swift 5.2Animating Constraint Constants - Introduction to Animation in iOS with Auto Layout - Swift 5.2Coding Challenge: Customize the Layout - Beginning CollectionViews in iOS - Swift 5, Xcode 11Coding Challenge: Customize the Layout - Beginning CollectionViews in iOS - Swift 5, Xcode 11Swift UITableView Tutorial with Custom Cells - Beginner SeriesSwift UITableView Tutorial with Custom Cells - Beginner Series
Яндекс.Метрика