-
Notifications
You must be signed in to change notification settings - Fork 1
CoreDataCollectionViewController
James Barrow edited this page Jan 29, 2017
·
1 revision
## Properties
Declaration
Swift
@IBOutlet public weak var dataController: CoreDataController!
---
<br>
### fetchedResultsController
**Declaration**
> <sub>**Swift**</sub>
> ```swift
open var fetchedResultsController: NSFetchedResultsController<NSFetchRequestResult>
## View lifecycle
Declaration
Swift
open override func viewDidLoad()
---
<br>
### viewDidAppear(_:)
**Declaration**
> <sub>**Swift**</sub>
> ```swift
open override func viewDidAppear(_ animated: Bool)
### Collection view
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
Declaration
Swift
open func controllerDidChangeContent(_ controller: NSFetchedResultsController)
---
<br>
### fetchAndReloadData()
**Declaration**
> <sub>**Swift**</sub>
> ```swift
open func fetchAndReloadData()