Commit a85227d2 by Olzhas Aldabergenov

rate app cell added on homepage:

parent 1e8a7608
......@@ -88,6 +88,7 @@
3E2C3E8E1EFA482D00E553CD /* GetCodeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E2C3E8D1EFA482D00E553CD /* GetCodeViewController.swift */; };
3E2C3E9B1EFCB17E00E553CD /* Validator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E2C3E9A1EFCB17E00E553CD /* Validator.swift */; };
3E2E1E821F84DB0100DC0FE5 /* LKSettingsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E2E1E811F84DB0100DC0FE5 /* LKSettingsViewController.swift */; };
3E323D501FBEF916009C3DA8 /* FeedFeedbackCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E323D4F1FBEF916009C3DA8 /* FeedFeedbackCell.swift */; };
3E5CC7A51FA83F7400B55DF0 /* BotManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E5CC7A41FA83F7400B55DF0 /* BotManager.swift */; };
3E5CC7AE1FA84F9F00B55DF0 /* DateUtil.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E5CC7AD1FA84F9F00B55DF0 /* DateUtil.swift */; };
3E6969B31FA2097200032D95 /* ServiceDetailsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E6969B21FA2097200032D95 /* ServiceDetailsViewController.swift */; };
......@@ -642,6 +643,7 @@
3E2C3E8D1EFA482D00E553CD /* GetCodeViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GetCodeViewController.swift; sourceTree = "<group>"; };
3E2C3E9A1EFCB17E00E553CD /* Validator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Validator.swift; sourceTree = "<group>"; };
3E2E1E811F84DB0100DC0FE5 /* LKSettingsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LKSettingsViewController.swift; sourceTree = "<group>"; };
3E323D4F1FBEF916009C3DA8 /* FeedFeedbackCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FeedFeedbackCell.swift; sourceTree = "<group>"; };
3E5CC7A41FA83F7400B55DF0 /* BotManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BotManager.swift; sourceTree = "<group>"; };
3E5CC7AD1FA84F9F00B55DF0 /* DateUtil.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DateUtil.swift; sourceTree = "<group>"; };
3E6969B21FA2097200032D95 /* ServiceDetailsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ServiceDetailsViewController.swift; sourceTree = "<group>"; };
......@@ -1348,6 +1350,7 @@
3E197E5A1F4413A7000BC88D /* FeedPackagesCell.swift */,
3E197E5C1F4413B9000BC88D /* FeedBotCell.swift */,
3E197E641F4563BB000BC88D /* FeedCollectionViewCell.swift */,
3E323D4F1FBEF916009C3DA8 /* FeedFeedbackCell.swift */,
);
name = main;
sourceTree = "<group>";
......@@ -2803,6 +2806,7 @@
981DB0171DDE2527002E69C0 /* ClaimTableCell.swift in Sources */,
98E3F8781CFA21B700112FB7 /* Response.swift in Sources */,
983003211C63619A0076151B /* UIView+CornerRadius.swift in Sources */,
3E323D501FBEF916009C3DA8 /* FeedFeedbackCell.swift in Sources */,
98A335651CFB228000F1A76C /* OfferFormViewController.swift in Sources */,
842978561E157D50002C5971 /* IDTVPlan.swift in Sources */,
9855D1A71D10138800168EC3 /* UserManager.swift in Sources */,
......
......@@ -699,3 +699,7 @@
"service_vip_total_selected" = "Выбрано:";
"service_vip_total_text" = "К оплате ежемесячно";
"tenge" = "тенге";
"feed_rate_cell_title" = "Нам важно Ваше мнение";
"feed_rate_cell_description" = "5 звезд помогут улучшить нам приложение. Мы будем благодарны услышать Ваш отзыв!";
"feed_rate_cell_button" = "Оценить";
......@@ -698,3 +698,7 @@
"service_vip_total_selected" = "Выбрано:";
"service_vip_total_text" = "К оплате ежемесячно";
"tenge" = "тенге";
"feed_rate_cell_title" = "Нам важно Ваше мнение";
"feed_rate_cell_description" = "5 звезд помогут улучшить нам приложение. Мы будем благодарны услышать Ваш отзыв!";
"feed_rate_cell_button" = "Оценить";
......@@ -701,3 +701,7 @@
"service_vip_total_selected" = "Выбрано:";
"service_vip_total_text" = "К оплате ежемесячно";
"tenge" = "тенге";
"feed_rate_cell_title" = "Нам важно Ваше мнение";
"feed_rate_cell_description" = "5 звезд помогут улучшить нам приложение. Мы будем благодарны услышать Ваш отзыв!";
"feed_rate_cell_button" = "Оценить";
......@@ -56,7 +56,7 @@ class FeedViewController: ViewControllerWithMenu {
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 3
return 4
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
......@@ -70,11 +70,16 @@ class FeedViewController: ViewControllerWithMenu {
cell.navController = self.navigationController
cell.selectionStyle = UITableViewCellSelectionStyle.None
return cell
} else {
} else if indexPath.row == 2 {
let cell = tableView.dequeueReusableCellWithIdentifier("FeedBotCell", forIndexPath: indexPath) as! FeedBotCell
cell.navController = self.navigationController
cell.selectionStyle = UITableViewCellSelectionStyle.None
return cell
} else {
let cell = tableView.dequeueReusableCellWithIdentifier("FeedFeedbackCell", forIndexPath: indexPath) as! FeedFeedbackCell
cell.navController = self.navigationController
cell.selectionStyle = UITableViewCellSelectionStyle.None
return cell
}
}
......
//
// FeedFeedbackCell.swift
// kt
//
// Created by neox on 17.11.17.
// Copyright © 2017 SimpleCode. All rights reserved.
//
import Foundation
class FeedFeedbackCell: UITableViewCell {
var navController : UINavigationController?
@IBOutlet weak var labelTitle: UILabel!
@IBOutlet weak var labelDescription: UILabel!
@IBOutlet weak var buttonRate: UIButtionRoundedMain!
override func awakeFromNib() {
super.awakeFromNib()
labelTitle.text = LS("feed_rate_cell_title")
labelDescription.text = LS("feed_rate_cell_description")
buttonRate.setTitle(LS("feed_rate_cell_button"), forState: .Normal )
buttonRate.addTarget(self,action:#selector(openLink(_:)), forControlEvents: .TouchUpInside)
}
func openLink(sender: UIButton) {
UIApplication.sharedApplication().openURL(NSURL(string: "http://telecom.kz")!)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment