2016-09-07 22:37:59 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
2017-05-12 14:19:12 +00:00
< title > IGListBindingSectionControllerDataSource Protocol Reference< / title >
2016-09-07 22:37:59 +00:00
< link rel = "stylesheet" type = "text/css" href = "../css/jazzy.css" / >
< link rel = "stylesheet" type = "text/css" href = "../css/highlight.css" / >
< meta charset = 'utf-8' >
< script src = "../js/jquery.min.js" defer > < / script >
< script src = "../js/jazzy.js" defer > < / script >
2021-10-28 22:47:52 +00:00
< script src = "../js/lunr.min.js" defer > < / script >
< script src = "../js/typeahead.jquery.js" defer > < / script >
< script src = "../js/jazzy.search.js" defer > < / script >
2016-09-07 22:37:59 +00:00
< / head >
< body >
2017-05-12 14:19:12 +00:00
< a name = "//apple_ref/objc/Protocol/IGListBindingSectionControllerDataSource" class = "dashAnchor" > < / a >
< a title = "IGListBindingSectionControllerDataSource Protocol Reference" > < / a >
2016-09-07 22:37:59 +00:00
< header >
< div class = "content-wrapper" >
2026-02-17 07:54:31 +00:00
< p > < a href = "../index.html" > IGListKit 5.2.0 Docs< / a > (96% documented)< / p >
2023-04-07 07:23:43 +00:00
< p class = "header-right" > < a href = "https://github.com/Instagram/IGListKit" > < img src = "../img/gh.png" alt = "GitHub" / > View on GitHub< / a > < / p >
< div class = "header-right" >
2021-10-28 22:47:52 +00:00
< form role = "search" action = "../search.json" >
< input type = "text" placeholder = "Search documentation" data-typeahead >
< / form >
2023-04-07 07:23:43 +00:00
< / div >
2016-09-07 22:37:59 +00:00
< / div >
< / header >
< div class = "content-wrapper" >
< p id = "breadcrumbs" >
2024-05-13 04:14:35 +00:00
< a href = "../index.html" > IGListKit< / a >
< img id = "carat" src = "../img/carat.png" alt = "" / >
< a href = "../Protocols.html" > Protocols< / a >
2023-04-07 07:23:43 +00:00
< img id = "carat" src = "../img/carat.png" alt = "" / >
2017-05-12 14:19:12 +00:00
IGListBindingSectionControllerDataSource Protocol Reference
2016-09-07 22:37:59 +00:00
< / p >
< / div >
< div class = "content-wrapper" >
< nav class = "sidebar" >
< ul class = "nav-groups" >
2016-11-23 20:42:52 +00:00
< li class = "nav-group-name" >
< a href = "../Guides.html" > Guides< / a >
< ul class = "nav-group-tasks" >
2017-05-12 14:19:12 +00:00
< li class = "nav-group-task" >
< a href = "../best-practices-and-faq.html" > Best Practices and FAQ< / a >
< / li >
2018-04-23 16:27:43 +00:00
< li class = "nav-group-task" >
2019-11-21 00:20:23 +00:00
< a href = "../generating-your-models-using-remodel.html" > Generating your models using remodel< / a >
2018-04-23 16:27:43 +00:00
< / li >
2016-11-23 20:42:52 +00:00
< li class = "nav-group-task" >
< a href = "../getting-started.html" > Getting Started< / a >
< / li >
2016-11-28 00:53:20 +00:00
< li class = "nav-group-task" >
< a href = "../iglistdiffable-and-equality.html" > IGListDiffable and Equality< / a >
< / li >
2016-12-27 20:37:57 +00:00
< li class = "nav-group-task" >
< a href = "../installation.html" > Installation< / a >
< / li >
2016-11-23 20:42:52 +00:00
< li class = "nav-group-task" >
< a href = "../migration.html" > Migration< / a >
< / li >
2017-08-23 21:12:05 +00:00
< li class = "nav-group-task" >
< a href = "../modeling-and-binding.html" > Modeling and Binding< / a >
< / li >
2017-05-12 14:19:12 +00:00
< li class = "nav-group-task" >
< a href = "../vision.html" > VISION< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../working-with-core-data.html" > Working with Core Data< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../working-with-uicollectionview.html" > Working with UICollectionView< / a >
< / li >
2016-11-23 20:42:52 +00:00
< / ul >
< / li >
2026-02-17 07:54:31 +00:00
< li class = "nav-group-name" >
< a href = "../Categories.html" > Categories< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "../Categories/UIViewController%28IGListAdapter%29.html" > UIViewController(IGListAdapter)< / a >
< / li >
< / ul >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-name" >
< a href = "../Classes.html" > Classes< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "../Classes/IGListAdapter.html" > IGListAdapter< / a >
< / li >
2026-02-17 07:54:31 +00:00
< li class = "nav-group-task" >
< a href = "../Classes/IGListAdapterDelegateAnnouncer.html" > IGListAdapterDelegateAnnouncer< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
< a href = "../Classes/IGListAdapterUpdater.html" > IGListAdapterUpdater< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Classes/IGListBatchUpdateData.html" > IGListBatchUpdateData< / a >
< / li >
< li class = "nav-group-task" >
2017-05-12 14:19:12 +00:00
< a href = "../Classes/IGListBindingSectionController.html" > IGListBindingSectionController< / a >
< / li >
2024-05-13 04:14:35 +00:00
< li class = "nav-group-task" >
< a href = "../Classes/IGListBindingSingleSectionController.html" > IGListBindingSingleSectionController< / a >
< / li >
2018-02-06 23:42:25 +00:00
< li class = "nav-group-task" >
< a href = "../Classes/IGListCollectionView.html" > IGListCollectionView< / a >
< / li >
2017-05-12 14:19:12 +00:00
< li class = "nav-group-task" >
< a href = "../Classes/IGListCollectionViewLayout.html" > IGListCollectionViewLayout< / a >
2016-09-07 22:37:59 +00:00
< / li >
2026-02-17 07:54:31 +00:00
< li class = "nav-group-task" >
< a href = "../Classes/IGListCollectionViewLayoutInvalidationContext.html" > IGListCollectionViewLayoutInvalidationContext< / a >
< / li >
2016-11-22 07:18:30 +00:00
< li class = "nav-group-task" >
2017-05-12 14:19:12 +00:00
< a href = "../Classes/IGListGenericSectionController.html" > IGListGenericSectionController< / a >
2016-11-22 07:18:30 +00:00
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
< a href = "../Classes/IGListIndexPathResult.html" > IGListIndexPathResult< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Classes/IGListIndexSetResult.html" > IGListIndexSetResult< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Classes/IGListMoveIndex.html" > IGListMoveIndex< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Classes/IGListMoveIndexPath.html" > IGListMoveIndexPath< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Classes.html#/c:objc(cs)IGListReloadDataUpdater" > IGListReloadDataUpdater< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Classes/IGListSectionController.html" > IGListSectionController< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Classes/IGListSingleSectionController.html" > IGListSingleSectionController< / a >
< / li >
2023-04-07 07:23:43 +00:00
< li class = "nav-group-task" >
< a href = "../Classes/IGListTransitionData.html" > IGListTransitionData< / a >
< / li >
2016-09-07 22:37:59 +00:00
< / ul >
< / li >
< li class = "nav-group-name" >
< a href = "../Constants.html" > Constants< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "../Constants.html#/c:@IGListKitVersionNumber" > IGListKitVersionNumber< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Constants.html#/c:@IGListKitVersionString" > IGListKitVersionString< / a >
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
2018-02-06 23:42:25 +00:00
< a href = "../Enums.html" > Enumerations< / a >
2016-09-07 22:37:59 +00:00
< ul class = "nav-group-tasks" >
2018-02-06 23:42:25 +00:00
< li class = "nav-group-task" >
< a href = "../Enums/IGListAdapterUpdateType.html" > IGListAdapterUpdateType< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
< a href = "../Enums/IGListDiffOption.html" > IGListDiffOption< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Enums/IGListExperiment.html" > IGListExperiment< / a >
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
< a href = "../Protocols.html" > Protocols< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListAdapterDataSource.html" > IGListAdapterDataSource< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListAdapterDelegate.html" > IGListAdapterDelegate< / a >
< / li >
2018-04-23 16:27:43 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListAdapterMoveDelegate.html" > IGListAdapterMoveDelegate< / a >
< / li >
2019-11-21 00:20:23 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListAdapterPerformanceDelegate.html" > IGListAdapterPerformanceDelegate< / a >
< / li >
2018-02-06 23:42:25 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListAdapterUpdateListener.html" > IGListAdapterUpdateListener< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListAdapterUpdaterDelegate.html" > IGListAdapterUpdaterDelegate< / a >
< / li >
2017-05-12 14:19:12 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListBatchContext.html" > IGListBatchContext< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListBindable.html" > IGListBindable< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListBindingSectionControllerDataSource.html" > IGListBindingSectionControllerDataSource< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListBindingSectionControllerSelectionDelegate.html" > IGListBindingSectionControllerSelectionDelegate< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListCollectionContext.html" > IGListCollectionContext< / a >
< / li >
2018-02-06 23:42:25 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListCollectionViewDelegateLayout.html" > IGListCollectionViewDelegateLayout< / a >
< / li >
2019-11-21 00:20:23 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListCollectionViewLayoutCompatible.html" > IGListCollectionViewLayoutCompatible< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListDiffable.html" > IGListDiffable< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListDisplayDelegate.html" > IGListDisplayDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListScrollDelegate.html" > IGListScrollDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListSingleSectionControllerDelegate.html" > IGListSingleSectionControllerDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListSupplementaryViewSource.html" > IGListSupplementaryViewSource< / a >
< / li >
2018-02-06 23:42:25 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListTransitionDelegate.html" > IGListTransitionDelegate< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
< a href = "../Protocols/IGListUpdatingDelegate.html" > IGListUpdatingDelegate< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Protocols/IGListWorkingRangeDelegate.html" > IGListWorkingRangeDelegate< / a >
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
2019-11-21 00:20:23 +00:00
< a href = "../Type%20Definitions.html" > Type Definitions< / a >
2016-09-07 22:37:59 +00:00
< ul class = "nav-group-tasks" >
2026-02-17 07:54:31 +00:00
< li class = "nav-group-task" >
< a href = "../Type%20Definitions/IGListAdaptiveCoalescingExperimentConfig.html" > IGListAdaptiveCoalescingExperimentConfig< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Type%20Definitions/IGListAdaptiveDiffingExperimentConfig.html" > IGListAdaptiveDiffingExperimentConfig< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
2019-11-21 00:20:23 +00:00
< a href = "../Type%20Definitions/IGListCollectionScrollingTraits.html" > IGListCollectionScrollingTraits< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Type%20Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListCollectionViewBlock" > IGListCollectionViewBlock< / a >
< / li >
2021-10-28 22:47:52 +00:00
< li class = "nav-group-task" >
< a href = "../Type%20Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListDataSourceChangeBlock" > IGListDataSourceChangeBlock< / a >
< / li >
2019-11-21 00:20:23 +00:00
< li class = "nav-group-task" >
< a href = "../Type%20Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListItemUpdateBlock" > IGListItemUpdateBlock< / a >
2016-09-07 22:37:59 +00:00
< / li >
< li class = "nav-group-task" >
2019-11-21 00:20:23 +00:00
< a href = "../Type%20Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListObjectTransitionBlock" > IGListObjectTransitionBlock< / a >
2016-09-07 22:37:59 +00:00
< / li >
< li class = "nav-group-task" >
2019-11-21 00:20:23 +00:00
< a href = "../Type%20Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListReloadUpdateBlock" > IGListReloadUpdateBlock< / a >
2016-09-07 22:37:59 +00:00
< / li >
2016-11-21 23:36:26 +00:00
< li class = "nav-group-task" >
2019-11-21 00:20:23 +00:00
< a href = "../Type%20Definitions.html#/c:IGListSingleSectionController.h@T@IGListSingleSectionCellConfigureBlock" > IGListSingleSectionCellConfigureBlock< / a >
2016-11-21 23:36:26 +00:00
< / li >
< li class = "nav-group-task" >
2019-11-21 00:20:23 +00:00
< a href = "../Type%20Definitions.html#/c:IGListSingleSectionController.h@T@IGListSingleSectionCellSizeBlock" > IGListSingleSectionCellSizeBlock< / a >
2016-11-21 23:36:26 +00:00
< / li >
2018-05-01 23:54:35 +00:00
< li class = "nav-group-task" >
2019-11-21 00:20:23 +00:00
< a href = "../Type%20Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListToObjectBlock" > IGListToObjectBlock< / a >
2018-05-01 23:54:35 +00:00
< / li >
2021-10-28 22:47:52 +00:00
< li class = "nav-group-task" >
< a href = "../Type%20Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListTransitionDataApplyBlock" > IGListTransitionDataApplyBlock< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Type%20Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListTransitionDataBlock" > IGListTransitionDataBlock< / a >
< / li >
2016-09-07 22:37:59 +00:00
< li class = "nav-group-task" >
2019-11-21 00:20:23 +00:00
< a href = "../Type%20Definitions.html#/c:IGListAdapter.h@T@IGListUpdaterCompletion" > IGListUpdaterCompletion< / a >
2016-09-07 22:37:59 +00:00
< / li >
< li class = "nav-group-task" >
2019-11-21 00:20:23 +00:00
< a href = "../Type%20Definitions.html#/c:IGListUpdatingDelegate.h@T@IGListUpdatingCompletion" > IGListUpdatingCompletion< / a >
2016-09-07 22:37:59 +00:00
< / li >
< / ul >
< / li >
< li class = "nav-group-name" >
< a href = "../Functions.html" > Functions< / a >
< ul class = "nav-group-tasks" >
< li class = "nav-group-task" >
< a href = "../Functions.html#/c:@F@IGListDiff" > IGListDiff< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Functions.html#/c:@F@IGListDiffPaths" > IGListDiffPaths< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Functions.html#/c:IGListExperiments.h@F@IGListExperimentEnabled" > IGListExperimentEnabled< / a >
< / li >
< / ul >
< / li >
2019-11-21 00:20:23 +00:00
< li class = "nav-group-name" >
< a href = "../Structs.html" > Structures< / a >
< ul class = "nav-group-tasks" >
2026-02-17 07:54:31 +00:00
< li class = "nav-group-task" >
< a href = "../Structs/IGListAdaptiveCoalescingExperimentConfig.html" > IGListAdaptiveCoalescingExperimentConfig< / a >
< / li >
< li class = "nav-group-task" >
< a href = "../Structs/IGListAdaptiveDiffingExperimentConfig.html" > IGListAdaptiveDiffingExperimentConfig< / a >
< / li >
2019-11-21 00:20:23 +00:00
< li class = "nav-group-task" >
< a href = "../Structs/IGListCollectionScrollingTraits.html" > IGListCollectionScrollingTraits< / a >
< / li >
< / ul >
< / li >
2016-09-07 22:37:59 +00:00
< / ul >
< / nav >
< article class = "main-content" >
< section >
< section class = "section" >
2017-05-12 14:19:12 +00:00
< h1 > IGListBindingSectionControllerDataSource< / h1 >
2016-09-07 22:37:59 +00:00
< div class = "declaration" >
< div class = "language" >
2021-10-28 22:47:52 +00:00
< p class = "aside-title" > Objective-C< / p >
2018-02-06 23:42:25 +00:00
< pre class = "highlight objective_c" > < code > < span class = "k" > @protocol< / span > < span class = "nc" > IGListBindingSectionControllerDataSource< / span > < span class = "o" > < < / span > < span class = "n" > NSObject< / span > < span class = "o" > > < / span > < / code > < / pre >
2016-09-07 22:37:59 +00:00
< / div >
2021-10-28 22:47:52 +00:00
< div class = "language" >
< p class = "aside-title" > Swift< / p >
2026-02-17 07:54:31 +00:00
< pre class = "highlight swift" > < code > < span class = "kd" > @MainActor< / span > < span class = "kd" > protocol< / span > < span class = "kt" > ListBindingSectionControllerDataSource< / span > < span class = "p" > :< / span > < span class = "kt" > NSObjectProtocol< / span > < / code > < / pre >
2021-10-28 22:47:52 +00:00
< / div >
2016-09-07 22:37:59 +00:00
< / div >
2017-05-12 14:19:12 +00:00
< p > A protocol that returns data to power cells in an < code > < a href = "../Classes/IGListBindingSectionController.html" > IGListBindingSectionController< / a > < / code > .< / p >
2016-09-07 22:37:59 +00:00
< / section >
< section class = "section task-group-section" >
< div class = "task-group" >
< ul >
< li class = "item" >
< div >
< code >
2017-05-12 14:19:12 +00:00
< a name = "/c:objc(pl)IGListBindingSectionControllerDataSource(im)sectionController:viewModelsForObject:" > < / a >
< a name = "//apple_ref/objc/Method/-sectionController:viewModelsForObject:" class = "dashAnchor" > < / a >
2021-10-28 22:47:52 +00:00
< a class = "token" href = "#/c:objc(pl)IGListBindingSectionControllerDataSource(im)sectionController:viewModelsForObject:" > -sectionController:< wbr > viewModelsForObject:< wbr > < / a >
2016-09-07 22:37:59 +00:00
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2017-05-12 14:19:12 +00:00
< p > Create an array of view models given a top-level object.< / p >
2016-11-21 23:36:26 +00:00
2016-09-07 22:37:59 +00:00
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
2018-02-06 23:42:25 +00:00
< pre class = "highlight objective_c" > < code > < span class = "k" > -< / span > < span class = "p" > (< / span > < span class = "n" > nonnull< / span > < span class = "n" > NSArray< / span > < span class = "o" > < < / span > < span class = "n" > id< / span > < span class = "o" > < < / span > < span class = "n" > < a href = "../Protocols/IGListDiffable.html" > IGListDiffable< / a > < / span > < span class = "o" > > > < / span > < span class = "o" > *< / span > < span class = "p" > )< / span >
2019-11-21 00:20:23 +00:00
< span class = "nf" > sectionController< / span > < span class = "p" > :< / span >
< span class = "p" > (< / span > < span class = "n" > nonnull< / span > < span class = "n" > < a href = "../Classes/IGListBindingSectionController.html" > IGListBindingSectionController< / a > < / span > < span class = "o" > *< / span > < span class = "p" > )< / span > < span class = "nv" > sectionController< / span >
< span class = "nf" > viewModelsForObject< / span > < span class = "p" > :(< / span > < span class = "n" > nonnull< / span > < span class = "n" > id< / span > < span class = "p" > )< / span > < span class = "nv" > object< / span > < span class = "p" > ;< / span > < / code > < / pre >
2016-09-07 22:37:59 +00:00
< / div >
2024-05-13 04:14:35 +00:00
< div class = "language" >
< p class = "aside-title" > Swift< / p >
2026-02-17 07:54:31 +00:00
< pre class = "highlight swift" > < code > < span class = "kd" > func< / span > < span class = "nf" > sectionController< / span > < span class = "p" > (< / span > < span class = "n" > _< / span > < span class = "nv" > sectionController< / span > < span class = "p" > :< / span > < span class = "kt" > < a href = "../Classes/IGListBindingSectionController.html" > IGListBindingSectionController< / a > < / span > < span class = "p" > ,< / span > < span class = "n" > viewModelsFor< / span > < span class = "nv" > object< / span > < span class = "p" > :< / span > < span class = "kt" > Any< / span > < span class = "p" > )< / span > < span class = "o" > -> < / span > < span class = "p" > [< / span > < span class = "n" > any< / span > < span class = "kt" > < a href = "../Protocols/IGListDiffable.html" > IGListDiffable< / a > < / span > < span class = "p" > ]< / span > < / code > < / pre >
2024-05-13 04:14:35 +00:00
< / div >
2016-09-07 22:37:59 +00:00
< / div >
< div >
< h4 > Parameters< / h4 >
< table class = "graybox" >
< tbody >
< tr >
< td >
< code >
2017-05-12 14:19:12 +00:00
< em > sectionController< / em >
2016-09-07 22:37:59 +00:00
< / code >
< / td >
< td >
< div >
2017-05-12 14:19:12 +00:00
< p > The section controller requesting view models.< / p >
< / div >
< / td >
< / tr >
< tr >
< td >
< code >
< em > object< / em >
< / code >
< / td >
< td >
< div >
< p > The top-level object that powers the section controller.< / p >
2016-09-07 22:37:59 +00:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
< div >
< h4 > Return Value< / h4 >
2017-05-12 14:19:12 +00:00
< p > A new array of view models.< / p >
2016-09-07 22:37:59 +00:00
< / div >
< / section >
< / div >
< / li >
< li class = "item" >
< div >
< code >
2017-05-12 14:19:12 +00:00
< a name = "/c:objc(pl)IGListBindingSectionControllerDataSource(im)sectionController:cellForViewModel:atIndex:" > < / a >
< a name = "//apple_ref/objc/Method/-sectionController:cellForViewModel:atIndex:" class = "dashAnchor" > < / a >
2021-10-28 22:47:52 +00:00
< a class = "token" href = "#/c:objc(pl)IGListBindingSectionControllerDataSource(im)sectionController:cellForViewModel:atIndex:" > -sectionController:< wbr > cellForViewModel:< wbr > atIndex:< wbr > < / a >
2016-09-07 22:37:59 +00:00
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2017-05-12 14:19:12 +00:00
< p > Return a dequeued cell for a given view model.< / p >
2016-11-21 23:36:26 +00:00
< div class = "aside aside-note" >
< p class = "aside-title" > Note< / p >
2017-05-12 14:19:12 +00:00
< p > The section controller will call < code > -bindViewModel:< / code > with the provided view model after the cell is dequeued. You
should handle cell configuration using this method. However, you can do additional configuration at this stage as well.< / p >
2016-09-07 22:37:59 +00:00
2016-11-21 23:36:26 +00:00
< / div >
2016-09-07 22:37:59 +00:00
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
2018-02-06 23:42:25 +00:00
< pre class = "highlight objective_c" > < code > < span class = "k" > -< / span > < span class = "p" > (< / span > < span class = "n" > nonnull< / span > < span class = "n" > UICollectionViewCell< / span > < span class = "o" > < < / span > < span class = "n" > < a href = "../Protocols/IGListBindable.html" > IGListBindable< / a > < / span > < span class = "o" > > < / span > < span class = "o" > *< / span > < span class = "p" > )< / span >
2019-11-21 00:20:23 +00:00
< span class = "nf" > sectionController< / span > < span class = "p" > :< / span >
< span class = "p" > (< / span > < span class = "n" > nonnull< / span > < span class = "n" > < a href = "../Classes/IGListBindingSectionController.html" > IGListBindingSectionController< / a > < / span > < span class = "o" > *< / span > < span class = "p" > )< / span > < span class = "nv" > sectionController< / span >
< span class = "nf" > cellForViewModel< / span > < span class = "p" > :(< / span > < span class = "n" > nonnull< / span > < span class = "n" > id< / span > < span class = "p" > )< / span > < span class = "nv" > viewModel< / span >
< span class = "nf" > atIndex< / span > < span class = "p" > :(< / span > < span class = "n" > NSInteger< / span > < span class = "p" > )< / span > < span class = "nv" > index< / span > < span class = "p" > ;< / span > < / code > < / pre >
2016-09-07 22:37:59 +00:00
< / div >
2024-05-13 04:14:35 +00:00
< div class = "language" >
< p class = "aside-title" > Swift< / p >
2026-02-17 07:54:31 +00:00
< pre class = "highlight swift" > < code > < span class = "kd" > func< / span > < span class = "nf" > sectionController< / span > < span class = "p" > (< / span > < span class = "n" > _< / span > < span class = "nv" > sectionController< / span > < span class = "p" > :< / span > < span class = "kt" > < a href = "../Classes/IGListBindingSectionController.html" > IGListBindingSectionController< / a > < / span > < span class = "p" > ,< / span > < span class = "n" > cellForViewModel< / span > < span class = "nv" > viewModel< / span > < span class = "p" > :< / span > < span class = "kt" > Any< / span > < span class = "p" > ,< / span > < span class = "n" > at< / span > < span class = "nv" > index< / span > < span class = "p" > :< / span > < span class = "kt" > Int< / span > < span class = "p" > )< / span > < span class = "o" > -> < / span > < span class = "n" > any< / span > < span class = "kt" > UICollectionViewCell< / span > < span class = "o" > & < / span > < span class = "kt" > < a href = "../Protocols/IGListBindable.html" > IGListBindable< / a > < / span > < / code > < / pre >
2024-05-13 04:14:35 +00:00
< / div >
2016-09-07 22:37:59 +00:00
< / div >
< div >
< h4 > Parameters< / h4 >
< table class = "graybox" >
< tbody >
2017-05-12 14:19:12 +00:00
< tr >
< td >
< code >
< em > sectionController< / em >
< / code >
< / td >
< td >
< div >
< p > The section controller requesting a cell.< / p >
< / div >
< / td >
< / tr >
< tr >
< td >
< code >
< em > viewModel< / em >
< / code >
< / td >
< td >
< div >
< p > The view model for the cell.< / p >
< / div >
< / td >
< / tr >
2016-09-07 22:37:59 +00:00
< tr >
< td >
< code >
< em > index< / em >
< / code >
< / td >
< td >
< div >
2017-05-12 14:19:12 +00:00
< p > The index of the view model.< / p >
2016-09-07 22:37:59 +00:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
< div >
< h4 > Return Value< / h4 >
2017-05-12 14:19:12 +00:00
< p > A dequeued cell.< / p >
2016-09-07 22:37:59 +00:00
< / div >
< / section >
< / div >
< / li >
< li class = "item" >
< div >
< code >
2017-05-12 14:19:12 +00:00
< a name = "/c:objc(pl)IGListBindingSectionControllerDataSource(im)sectionController:sizeForViewModel:atIndex:" > < / a >
< a name = "//apple_ref/objc/Method/-sectionController:sizeForViewModel:atIndex:" class = "dashAnchor" > < / a >
2021-10-28 22:47:52 +00:00
< a class = "token" href = "#/c:objc(pl)IGListBindingSectionControllerDataSource(im)sectionController:sizeForViewModel:atIndex:" > -sectionController:< wbr > sizeForViewModel:< wbr > atIndex:< wbr > < / a >
2016-09-07 22:37:59 +00:00
< / code >
< / div >
< div class = "height-container" >
< div class = "pointer-container" > < / div >
< section class = "section" >
< div class = "pointer" > < / div >
< div class = "abstract" >
2017-05-12 14:19:12 +00:00
< p > Return a cell size for a given view model.< / p >
2016-09-07 22:37:59 +00:00
< / div >
< div class = "declaration" >
< h4 > Declaration< / h4 >
< div class = "language" >
< p class = "aside-title" > Objective-C< / p >
2018-02-06 23:42:25 +00:00
< pre class = "highlight objective_c" > < code > < span class = "k" > -< / span > < span class = "p" > (< / span > < span class = "n" > CGSize< / span > < span class = "p" > )< / span > < span class = "nf" > sectionController< / span > < span class = "p" > :< / span >
2017-05-12 14:19:12 +00:00
< span class = "p" > (< / span > < span class = "n" > nonnull< / span > < span class = "n" > < a href = "../Classes/IGListBindingSectionController.html" > IGListBindingSectionController< / a > < / span > < span class = "o" > *< / span > < span class = "p" > )< / span > < span class = "nv" > sectionController< / span >
< span class = "nf" > sizeForViewModel< / span > < span class = "p" > :(< / span > < span class = "n" > nonnull< / span > < span class = "n" > id< / span > < span class = "p" > )< / span > < span class = "nv" > viewModel< / span >
< span class = "nf" > atIndex< / span > < span class = "p" > :(< / span > < span class = "n" > NSInteger< / span > < span class = "p" > )< / span > < span class = "nv" > index< / span > < span class = "p" > ;< / span > < / code > < / pre >
2016-09-07 22:37:59 +00:00
< / div >
< div class = "language" >
< p class = "aside-title" > Swift< / p >
2019-11-21 00:20:23 +00:00
< pre class = "highlight swift" > < code > < span class = "kd" > func< / span > < span class = "nf" > sectionController< / span > < span class = "p" > (< / span > < span class = "n" > _< / span > < span class = "nv" > sectionController< / span > < span class = "p" > :< / span > < span class = "kt" > < a href = "../Classes/IGListBindingSectionController.html" > IGListBindingSectionController< / a > < / span > < span class = "p" > ,< / span > < span class = "n" > sizeForViewModel< / span > < span class = "nv" > viewModel< / span > < span class = "p" > :< / span > < span class = "kt" > Any< / span > < span class = "p" > ,< / span > < span class = "n" > at< / span > < span class = "nv" > index< / span > < span class = "p" > :< / span > < span class = "kt" > Int< / span > < span class = "p" > )< / span > < span class = "o" > -> < / span > < span class = "kt" > CGSize< / span > < / code > < / pre >
2016-09-07 22:37:59 +00:00
< / div >
< / div >
< div >
< h4 > Parameters< / h4 >
< table class = "graybox" >
< tbody >
< tr >
< td >
< code >
2017-05-12 14:19:12 +00:00
< em > sectionController< / em >
2016-09-07 22:37:59 +00:00
< / code >
< / td >
< td >
< div >
2017-05-12 14:19:12 +00:00
< p > The section controller requesting a size.< / p >
< / div >
< / td >
< / tr >
< tr >
< td >
< code >
< em > viewModel< / em >
< / code >
< / td >
< td >
< div >
< p > The view model for the cell.< / p >
2016-09-07 22:37:59 +00:00
< / div >
< / td >
< / tr >
< tr >
< td >
< code >
< em > index< / em >
< / code >
< / td >
< td >
< div >
2017-05-12 14:19:12 +00:00
< p > The index of the view model.< / p >
2016-09-07 22:37:59 +00:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
2017-05-12 14:19:12 +00:00
< div >
< h4 > Return Value< / h4 >
< p > A size for the view model.< / p >
< / div >
2016-09-07 22:37:59 +00:00
< / section >
< / div >
< / li >
< / ul >
< / div >
< / section >
< / section >
< section id = "footer" >
2026-02-17 07:54:31 +00:00
< p > © 2026 < a class = "link" href = "https://twitter.com/MetaOpenSource" target = "_blank" rel = "external noopener" > Instagram< / a > . All rights reserved. (Last updated: 2026-02-15)< / p >
< p > Generated by < a class = "link" href = "https://github.com/realm/jazzy" target = "_blank" rel = "external noopener" > jazzy ♪♫ v0.15.4< / a > , a < a class = "link" href = "https://realm.io" target = "_blank" rel = "external noopener" > Realm< / a > project.< / p >
2016-09-07 22:37:59 +00:00
< / section >
< / article >
< / div >
< / body >
< / html >