SHARE
TWEET

Untitled

a guest Sep 15th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top