Skip to content

Instantly share code, notes, and snippets.

@zontan
Created September 23, 2019 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zontan/5c591cc6557cf5c453939f804b230f79 to your computer and use it in GitHub Desktop.
Save zontan/5c591cc6557cf5c453939f804b230f79 to your computer and use it in GitHub Desktop.
class UserSearchViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate {
@IBOutlet weak var tableView: UITableView!
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 0
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "userCell", for: indexPath)
//TODO: Configure cell
return cell
}
func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment