Skip to content

CoreDataCollectionViewController

James Barrow edited this page Jan 29, 2017 · 1 revision

CoreDataCollectionViewController


## Properties

dataController

Declaration

Swift

@IBOutlet public weak var dataController: CoreDataController!

---

<br>

### fetchedResultsController


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open var fetchedResultsController: NSFetchedResultsController<NSFetchRequestResult>


## View lifecycle

viewDidLoad()

Declaration

Swift

open override func viewDidLoad()


---

<br>

### viewDidAppear(_:)


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open override func viewDidAppear(_ animated: Bool)


### Collection view

numberOfSections(in:)

Declaration

Swift

open override func numberOfSections(in collectionView: UICollectionView) -> Int


---

<br>

### collectionView(_:numberOfItemsInSection:)


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int


## Fetched results controller

controllerDidChangeContent(_:)

Declaration

Swift

open func controllerDidChangeContent(_ controller: NSFetchedResultsController)


---

<br>

### fetchAndReloadData()


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open func fetchAndReloadData()