ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

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

Автор: Kodeco

Загружено: 2020-08-25

Просмотров: 2376

Описание: 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.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Setting up a TableView in iOS - TableViews in iOS - raywenderlich.com

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Cypht - Web Mail Agent. ВСЕ E-Mail со ВСЕХ аккаунтов в ОДНОМ месте

Cypht - Web Mail Agent. ВСЕ E-Mail со ВСЕХ аккаунтов в ОДНОМ месте

Deep Focus Radio - Музыка для кодирования и производительности

Deep Focus Radio - Музыка для кодирования и производительности

Chill Out Music Mix • 24/7 Live Radio | Relaxing Deep House 2025, Chillout Lounge, Tropical House

Chill Out Music Mix • 24/7 Live Radio | Relaxing Deep House 2025, Chillout Lounge, Tropical House

Что такое API? Простыми Словами Для Начинающих

Что такое API? Простыми Словами Для Начинающих

Ликвидация главы ФСБ? / Спецоперация спецслужб

Ликвидация главы ФСБ? / Спецоперация спецслужб

Японец по цене ВАЗа! Оживляем пацанскую мечту :)

Японец по цене ВАЗа! Оживляем пацанскую мечту :)

АСЛАНЯН: Как у тебя отберут машину. Китайский резиновый шпион. Монорельс умер / МАШИНЫ

АСЛАНЯН: Как у тебя отберут машину. Китайский резиновый шпион. Монорельс умер / МАШИНЫ

CI/CD — Простым языком на понятном примере

CI/CD — Простым языком на понятном примере

«РОССИЮ МОЖНО НЕ БОЯТЬСЯ?». Z-ники в бешенстве из-за слабости Кремля. Конфликт с Азербайджаном

«РОССИЮ МОЖНО НЕ БОЯТЬСЯ?». Z-ники в бешенстве из-за слабости Кремля. Конфликт с Азербайджаном

Лучший Гайд по Kafka для Начинающих За 1 Час

Лучший Гайд по Kafka для Начинающих За 1 Час

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]