//
//  VIPTVCell.swift
//  kt
//
//  Created by neox on 06.11.17.
//  Copyright © 2017 SimpleCode. All rights reserved.
//

import Foundation

class VIPServiceHeader: UITableViewCell/*, UIPickerViewDataSource, UIPickerViewDelegate*/ {
    
    var price : Int = VIPPrices.VIP_TV_PRICE
    @IBOutlet weak var layoutTitleHolder: UIView!
    @IBOutlet weak var labelTitle: UILabel!
    @IBOutlet weak var labelPrice: UILabel!
    @IBOutlet weak var labelAudience: UILabel!
    @IBOutlet weak var labelPriceUnit: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        self.labelTitle.text = LS("service_vip_tv")
        
//        let pickerView = UIPickerView()
//        pickerView.delegate = self
//        textFieldOption.inputView = pickerView
        
        self.selectionStyle = UITableViewCellSelectionStyle.None

        labelPrice.text = "+\(price) "
        labelPriceUnit.text = LS("tenge_per_month")
        labelAudience.text = LS("service_vip_tv_audience")
    }
    
    func setSelected() {
        layoutTitleHolder.backgroundColor = UIColor.ocean()
    }
    
//    func numberOfComponentsInPickerView(pickerView: UIPickerView) -> Int {
//        return 1
//    }
//    
//    func pickerView(pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
//        return pickOption.count
//    }
//    
//    func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
//        return pickOption[row]
//    }
//    
//    func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
//        self.textFieldOption.text = pickOption[row]
//        self.textFieldOption.endEditing(true)
//    }
    
//    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
//        let cell = UITableViewCell()
//        cell.textLabel?.text = pickOption[indexPath.row]
//        return cell
//    }
//    
//    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
//        return pickOption.count
//    }
//    
//    func tableView(tableView: UITableView, didDeselectRowAtIndexPath indexPath: NSIndexPath) {
//        if let cell = tableView.cellForRowAtIndexPath(indexPath) {
//            cell.accessoryType = .None
//        }
//    }
//    
//    func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
//        if let cell = tableView.cellForRowAtIndexPath(indexPath) {
//            cell.accessoryType = .Checkmark
//            
//        }
//    }

    
}
