Skip to content

CloudKitTableViewController

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

CloudKitTableViewController


## Properties

records

Declaration

Swift

private var records = CKRecord

---

<br>

### firstLoad


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
private var firstLoad = true


loading

Declaration

Swift

public var loading = false

---

<br>

### recordsPerPage


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
@IBInspectable public var recordsPerPage: Int = 25


recordType

Declaration

Swift

@IBInspectable public var recordType: String = ""

---

<br>

### container


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open var container: CKContainer


database

Declaration

Swift

open var database: CKDatabase

---

<br>

### query


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open var query: CKQuery


queryOperation

Declaration

Swift

private var queryOperation: CKQueryOperation

---

<br>

### queryCursor


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
private var queryCursor: CKQueryCursor?


tableFooterView

Declaration

Swift

@IBOutlet public var tableFooterView: UIView?

---


<br>
## Init  <br>

### init(recordType:style:)


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
public convenience init(recordType: String, style: UITableViewStyle)


init(recordType:)

Declaration

Swift

public convenience init(recordType: String)


---


<br>
## View Lifecycle  <br>

### loadView()


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


viewDidLoad()

Declaration

Swift

open override func viewDidLoad()


---


<br>
## Data  <br>

### recordsWillLoad()


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


recordsDidLoad(error:)

Declaration

Swift

open func recordsDidLoad(error: Error?)


---

<br>

### clear()


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


loadRecords()

Declaration

Swift

private func loadRecords()


---

<br>

### loadNextPage()


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
private func loadNextPage()


## Actions

refreshControlValueChanged(_:)

Declaration

Swift

internal func refreshControlValueChanged(_ sender: UIRefreshControl)


---


<br>
## Table View  <br>

### numberOfSections(in:)


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open override func numberOfSections(in tableView: UITableView) -> Int


tableView(_:numberOfRowsInSection:)

Declaration

Swift

open override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int


---

<br>

### tableView(_:cellForRowAt:)


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell


## Table View

scrollViewDidScroll(_:)

Declaration

Swift

open override func scrollViewDidScroll(_ scrollView: UIScrollView)


---

<div class="footer" align="center"><sub>Built with <a href="https://github.com/Baza207/LittleHedgehogDocs" target="_blank">Little Hedgehog Docs</a> by <a href="mailto:james@pigonahill.com" target="_blank">James Barrow</a> - <a href="http://pigonahill.com" target="_blank">Pig on a Hill Productions</a>.</sub></div>

Clone this wiki locally