Skip to content

Instantly share code, notes, and snippets.

@hechen
Created August 16, 2017 02:12
Show Gist options
  • Save hechen/e960c88f19eaa26fbc8ffcf84786f1b7 to your computer and use it in GitHub Desktop.
Save hechen/e960c88f19eaa26fbc8ffcf84786f1b7 to your computer and use it in GitHub Desktop.
UITableViewDataSource Swift Version
func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return <#count#>
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return <#count#>
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
<#code#>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment