Created
February 28, 2019 09:53
-
-
Save alvaroroyo/8d85bad410c0fc0f652b2cddec9f7b33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
protocol PersonsViewInterface: class { | |
func showPersonsData(persons: [Person]) | |
func showNoContentScreen() | |
} | |
class PersonsViewController: UIViewController, PersonsViewInterface { | |
@IBOutlet weak var table: UITableView! | |
var persons:[Person] = [] | |
var presenter: PersonsModuleInterface! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
self.presenter.updateView() | |
} | |
// MARK: PersonsViewInterface | |
func showPersonsData(persons: [Person]) { | |
self.persons = persons | |
self.tableView.reloadData() | |
} | |
func showNoContentScreen() { | |
// Mostrar pantalla sin información | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment