Showing
1 changed file
with
8 additions
and
5 deletions
... | @@ -118,10 +118,10 @@ import SwiftEventBus | ... | @@ -118,10 +118,10 @@ import SwiftEventBus |
118 | func showSendDialog() -> Void { | 118 | func showSendDialog() -> Void { |
119 | 119 | ||
120 | let alert = UIAlertController(title: "Στείλε δώρο", message: "Είσαι σίγουρος ότι θέλεις να κάνεις δώρο το κουπόνι σου;", preferredStyle: .alert) | 120 | let alert = UIAlertController(title: "Στείλε δώρο", message: "Είσαι σίγουρος ότι θέλεις να κάνεις δώρο το κουπόνι σου;", preferredStyle: .alert) |
121 | - alert.addAction(UIAlertAction(title: "Αποστολή", style: .default, handler: { action in | 121 | + let cancelButton = UIAlertAction(title: "Άκυρο", style: .default, handler: { action in |
122 | switch action.style{ | 122 | switch action.style{ |
123 | case .default: | 123 | case .default: |
124 | - self.cosmoteCouponSharingRequest() | 124 | + print("default") |
125 | 125 | ||
126 | case .cancel: | 126 | case .cancel: |
127 | print("cancel") | 127 | print("cancel") |
... | @@ -130,11 +130,14 @@ import SwiftEventBus | ... | @@ -130,11 +130,14 @@ import SwiftEventBus |
130 | print("destructive") | 130 | print("destructive") |
131 | 131 | ||
132 | } | 132 | } |
133 | - })) | 133 | + }) |
134 | - alert.addAction(UIAlertAction(title: "Άκυρο", style: .default, handler: { action in | 134 | + cancelButton.setValue(UIColor(rgb: 0xFC5757), forKey: "titleTextColor") |
135 | + alert.addAction(cancelButton) | ||
136 | + | ||
137 | + alert.addAction(UIAlertAction(title: "Αποστολή", style: .default, handler: { action in | ||
135 | switch action.style{ | 138 | switch action.style{ |
136 | case .default: | 139 | case .default: |
137 | - print("default") | 140 | + self.cosmoteCouponSharingRequest() |
138 | 141 | ||
139 | case .cancel: | 142 | case .cancel: |
140 | print("cancel") | 143 | print("cancel") | ... | ... |
-
Please register or login to post a comment