Showing
5 changed files
with
10 additions
and
4 deletions
No preview for this file type
... | @@ -163,7 +163,8 @@ extension ContextualViewController: NumbersPopupDelegate { | ... | @@ -163,7 +163,8 @@ extension ContextualViewController: NumbersPopupDelegate { |
163 | pp.InitWithController(controller: self, | 163 | pp.InitWithController(controller: self, |
164 | numbersList: self.numbersList, | 164 | numbersList: self.numbersList, |
165 | sender: sender, | 165 | sender: sender, |
166 | - delegate: self) | 166 | + delegate: self, |
167 | + headerText: "Αποστολέας") | ||
167 | } | 168 | } |
168 | 169 | ||
169 | func presentedPopup() { | 170 | func presentedPopup() { | ... | ... |
... | @@ -25,11 +25,12 @@ protocol NumbersPopupDelegate { | ... | @@ -25,11 +25,12 @@ protocol NumbersPopupDelegate { |
25 | 25 | ||
26 | var delegateBallon: NumbersPopupDelegate? | 26 | var delegateBallon: NumbersPopupDelegate? |
27 | var numbersList: Array<String> = [] | 27 | var numbersList: Array<String> = [] |
28 | + var headerText: String = "Αποστολέας" | ||
28 | 29 | ||
29 | var widthPopup: Int = 0 | 30 | var widthPopup: Int = 0 |
30 | var heightPopup: Int = 0 | 31 | var heightPopup: Int = 0 |
31 | 32 | ||
32 | - func InitWithController(controller: UIViewController, numbersList: Array<String>, sender: Any, delegate: NumbersPopupDelegate){ | 33 | + func InitWithController(controller: UIViewController, numbersList: Array<String>, sender: Any, delegate: NumbersPopupDelegate, headerText: String){ |
33 | 34 | ||
34 | //print("Ok InitWithController sender ") | 35 | //print("Ok InitWithController sender ") |
35 | 36 | ||
... | @@ -54,6 +55,7 @@ protocol NumbersPopupDelegate { | ... | @@ -54,6 +55,7 @@ protocol NumbersPopupDelegate { |
54 | controller.present(self, animated: true, completion: nil) | 55 | controller.present(self, animated: true, completion: nil) |
55 | } | 56 | } |
56 | self.numbersList = numbersList | 57 | self.numbersList = numbersList |
58 | + self.headerText = headerText | ||
57 | } | 59 | } |
58 | 60 | ||
59 | public override func viewWillAppear(_ animated: Bool) { | 61 | public override func viewWillAppear(_ animated: Bool) { |
... | @@ -79,6 +81,7 @@ protocol NumbersPopupDelegate { | ... | @@ -79,6 +81,7 @@ protocol NumbersPopupDelegate { |
79 | 81 | ||
80 | // self.tableView.reloadData() | 82 | // self.tableView.reloadData() |
81 | self.tableView.invalidateIntrinsicContentSize() | 83 | self.tableView.invalidateIntrinsicContentSize() |
84 | + self.headerLabel.text = self.headerText | ||
82 | } | 85 | } |
83 | 86 | ||
84 | func setupScreens() { | 87 | func setupScreens() { | ... | ... |
... | @@ -262,7 +262,8 @@ extension ShareViewController: NumbersPopupDelegate { | ... | @@ -262,7 +262,8 @@ extension ShareViewController: NumbersPopupDelegate { |
262 | pp.InitWithController(controller: self, | 262 | pp.InitWithController(controller: self, |
263 | numbersList: self.numbersList, | 263 | numbersList: self.numbersList, |
264 | sender: sender, | 264 | sender: sender, |
265 | - delegate: self) | 265 | + delegate: self, |
266 | + headerText: "Αποστολέας") | ||
266 | } | 267 | } |
267 | 268 | ||
268 | func presentedPopup() { | 269 | func presentedPopup() { | ... | ... |
... | @@ -238,7 +238,8 @@ extension TelcoViewController: NumbersPopupDelegate { | ... | @@ -238,7 +238,8 @@ extension TelcoViewController: NumbersPopupDelegate { |
238 | pp.InitWithController(controller: self, | 238 | pp.InitWithController(controller: self, |
239 | numbersList: self.numbersList, | 239 | numbersList: self.numbersList, |
240 | sender: sender, | 240 | sender: sender, |
241 | - delegate: self) | 241 | + delegate: self, |
242 | + headerText: "Επιλογή σύνδεσης") | ||
242 | } | 243 | } |
243 | 244 | ||
244 | func presentedPopup() { | 245 | func presentedPopup() { | ... | ... |
-
Please register or login to post a comment