Популярное

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

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

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

Топ запросов

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

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

Автор: Kodeco

Загружено: 26 авг. 2020 г.

Просмотров: 2 375 просмотров

Описание:

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

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

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

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

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

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

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

Considering an Android Bootcamp?

Considering an Android Bootcamp?

Учебник по Excel за 15 минут

Учебник по Excel за 15 минут

FLUTTER: COMO Crear una APP DESDE CERO (para Principiantes)

FLUTTER: COMO Crear una APP DESDE CERO (para Principiantes)

Apple Intelligence: New AI Features for Developers With Emad Ghorbaninia

Apple Intelligence: New AI Features for Developers With Emad Ghorbaninia

Introduction to Generative AI

Introduction to Generative AI

🎯Focus music - 30 mins | Groove 🎵 | Brain.fm- Music to Focus, Relax & Sleep

🎯Focus music - 30 mins | Groove 🎵 | Brain.fm- Music to Focus, Relax & Sleep

Пассивный доход: Как я начал дропшиппинг с нуля

Пассивный доход: Как я начал дропшиппинг с нуля

Я научу тебя пользоваться iPhone за 25 минут! Мастер-класс по переходу с Android на iOS!

Я научу тебя пользоваться iPhone за 25 минут! Мастер-класс по переходу с Android на iOS!

Cybersecurity Architecture: Networks

Cybersecurity Architecture: Networks

Как

Как "мыслят" самые умные в истории машины

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



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



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