Last active
October 6, 2017 12:48
-
-
Save Th3nion/c7a182bf20d0d58c6a0febed78d8f6ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DispatchQueue.main.async { | |
} | |
################################################################################ | |
DispatchQueue.global().async { | |
} | |
################################################################################ | |
//MARK: - UITableViewDataSource | |
extension <#class#> : UITableViewDataSource { | |
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
return <#result#> | |
} | |
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | |
let cell = tableView.dequeueReusableCell(withIdentifier: <#T##String#>) | |
return cell | |
} | |
} | |
################################################################################ | |
//MARK:- UITableViewDelegate | |
extension <#class#> : UITableViewDelegate { | |
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | |
<#code#> | |
} | |
} | |
################################################################################ | |
do { | |
try CoreStore.perform (synchronous: { (transaction) -> Void in | |
<#transaction#> | |
}, waitForAllObservers: false) | |
} catch { | |
<#error#> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment