Showing
1 changed file
with
5 additions
and
4 deletions
| ... | @@ -160,10 +160,11 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -160,10 +160,11 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ |
| 160 | 160 | ||
| 161 | public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | 161 | public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { |
| 162 | if (campaigns[indexPath.row]._ccms != nil) { | 162 | if (campaigns[indexPath.row]._ccms != nil) { |
| 163 | - let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 163 | + // let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
| 164 | - let vc = storyboard.instantiateViewController(withIdentifier: "ContextualViewController") as! SwiftWarplyFramework.ContextualViewController | 164 | + // let vc = storyboard.instantiateViewController(withIdentifier: "ContextualViewController") as! SwiftWarplyFramework.ContextualViewController |
| 165 | - vc.ccms = campaigns[indexPath.row]._ccms | 165 | + // vc.ccms = campaigns[indexPath.row]._ccms |
| 166 | - self.navigationController?.pushViewController(vc, animated: true) | 166 | + // self.navigationController?.pushViewController(vc, animated: true) |
| 167 | + swiftApi().handleContextualCampaigns(campaigns[indexPath.row]._ccms!, self) | ||
| 167 | 168 | ||
| 168 | } else if (campaigns[indexPath.row]._type != nil && campaigns[indexPath.row]._type == "telco") { | 169 | } else if (campaigns[indexPath.row]._type != nil && campaigns[indexPath.row]._type == "telco") { |
| 169 | let ccmsCampaigns = swiftApi().getCCMSLoyaltyCampaigns() | 170 | let ccmsCampaigns = swiftApi().getCCMSLoyaltyCampaigns() | ... | ... |
-
Please register or login to post a comment