Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.96 KB | None | 0 0
  1. import UIKit
  2.  
  3. class ViewController: UIViewController {
  4.    
  5.     @IBOutlet weak var tableView: UITableView!
  6.     let network = Network()
  7.     let cellReuseIdentifier = "mycell"
  8.     var doubleText: Double?
  9.  
  10.     override func viewDidLoad() {
  11.         super.viewDidLoad()
  12.         tableView?.register(UINib(nibName: "TableViewCell", bundle: nil), forCellReuseIdentifier: cellReuseIdentifier)
  13.         network.getCurrentCurrency {
  14.             (myCurrency) in
  15.         }
  16.        
  17.     }
  18.  
  19. }
  20.  
  21.  
  22.  
  23.  
  24. extension ViewController: UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate {
  25.     func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  26.         return 1
  27.     }
  28.    
  29.     func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  30.         let cell = tableView.dequeueReusableCell(withIdentifier: cellReuseIdentifier, for: indexPath) as! TableViewCell
  31.         return cell
  32.        
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement