Manos Chorianopoulos

fix NumberPopupViewController title from TelcoVC

......@@ -163,7 +163,8 @@ extension ContextualViewController: NumbersPopupDelegate {
pp.InitWithController(controller: self,
numbersList: self.numbersList,
sender: sender,
delegate: self)
delegate: self,
headerText: "Αποστολέας")
}
func presentedPopup() {
......
......@@ -25,11 +25,12 @@ protocol NumbersPopupDelegate {
var delegateBallon: NumbersPopupDelegate?
var numbersList: Array<String> = []
var headerText: String = "Αποστολέας"
var widthPopup: Int = 0
var heightPopup: Int = 0
func InitWithController(controller: UIViewController, numbersList: Array<String>, sender: Any, delegate: NumbersPopupDelegate){
func InitWithController(controller: UIViewController, numbersList: Array<String>, sender: Any, delegate: NumbersPopupDelegate, headerText: String){
//print("Ok InitWithController sender ")
......@@ -54,6 +55,7 @@ protocol NumbersPopupDelegate {
controller.present(self, animated: true, completion: nil)
}
self.numbersList = numbersList
self.headerText = headerText
}
public override func viewWillAppear(_ animated: Bool) {
......@@ -79,6 +81,7 @@ protocol NumbersPopupDelegate {
// self.tableView.reloadData()
self.tableView.invalidateIntrinsicContentSize()
self.headerLabel.text = self.headerText
}
func setupScreens() {
......
......@@ -262,7 +262,8 @@ extension ShareViewController: NumbersPopupDelegate {
pp.InitWithController(controller: self,
numbersList: self.numbersList,
sender: sender,
delegate: self)
delegate: self,
headerText: "Αποστολέας")
}
func presentedPopup() {
......
......@@ -238,7 +238,8 @@ extension TelcoViewController: NumbersPopupDelegate {
pp.InitWithController(controller: self,
numbersList: self.numbersList,
sender: sender,
delegate: self)
delegate: self,
headerText: "Επιλογή σύνδεσης")
}
func presentedPopup() {
......