Guest User

Untitled

a guest
Feb 18th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. extension ViewController : UITableViewDelegate{
  2.  
  3. func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat{
  4.  
  5. return 300;
  6. }
  7.  
  8. }
  9.  
  10. extension ViewController : UITableViewDataSource{
  11.  
  12. func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  13.  
  14. return _count;
  15.  
  16. }
  17.  
  18. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  19.  
  20. guard let cell = tableView.dequeueReusableCell(withIdentifier: qTableViewCell.reuseIdentifier, for: indexPath) as? qTableViewCell else { fatalError("Unexpected Table View Cell") }
  21.  
  22.  
  23. return cell
  24. }
Add Comment
Please, Sign In to add comment