             }
             else if let secondaryTitle = currentCellDescriptor["secondaryTitle"] {
                 print("\(secondaryTitle)")
-                cell.textLabel?.text = secondaryTitle as? String
+                cell.detailTextLabel?.text = secondaryTitle as? String
             }
         }
         

//
//

import Foundation

// This cocoa-pod will be for used as an Expandable Table View. In this cocoa-pod you
// will be able to expand and collaspe rows according to what you need. 


var cellDescriptors: NSMutableArray!
/// This is a double array because you have section and all the rows. In this example there is only 1 section
var visibleRowsInSection = [[Int]]()

public class QExpandableTableView: UIViewController, UITableViewDelegate, UITableViewDataSource
    
{
    override public func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }
    
    
    override public func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
    }
    
    
    // This is for Custom cells but this is a basic example, so we will only expand basic cells.
    // The normal cell is just the usual cell you will see, and when you exapnd the basic cell, you will 
    // see the valuePickerCell, which contains the specific value you want to see.
    
    public func configureTableView(tableView: UITableView) {
        tableView.delegate = self
        tableView.dataSource = self

        
        let cell = tableView.dequeueReusableCellWithIdentifier(currentCellDescriptor["cellIdentifier"] as! String, forIndexPath: indexPath) as! UITableViewCell
        
        cell.textLabel?.text = ""
        cell.detailTextLabel?.text = ""
        if currentCellDescriptor["isVisible"] as! Int == 1 {
            if (currentCellDescriptor["primaryTitle"] as! String).characters.count > 0 {
                print("primary")
