         setup()
     }
     
+    /**
+    Determines the current desired height of the cell. Used in the UITableViewDelegate's heightForRowAtIndexPath method.
+    
+    :returns: The cell's height.
+    */
     public func datePickerHeight() -> CGFloat {
         var expandedHeight = unexpandedHeight + CGFloat(datePicker.frame.size.height)
         return expanded ? expandedHeight : unexpandedHeight
     }
     
+    /**
+    Used to notify the DatePickerCell that it was selected. The DatePickerCell will then run its selection animation and expand or collapse.
+    
+    :param: tableView The tableview the DatePickerCell was selected in.
+    */
     public func selectedInTableView(tableView: UITableView) {
         expanded = !expanded
         

            rightLabel.text = DatePickerCell.Stored.dateFormatter.stringFromDate(date)
        }
    }
    public var timeStyle = NSDateFormatterStyle.ShortStyle
    public var dateStyle = NSDateFormatterStyle.MediumStyle
    
    public var leftLabel = UILabel()
    public var rightLabel = UILabel()
    public var rightLabelTextColor = UIColor(hue: 0.639, saturation: 0.041, brightness: 0.576, alpha: 1.0) //Color of normal detail label.
    
    var seperator = DVColorLockView()
    
    var datePickerContainer = UIView()
    public var datePicker: UIDatePicker = UIDatePicker()
    
    public var expanded = false
    var unexpandedHeight = CGFloat(44)
    
    override public init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
                

import Foundation
import UIKit

/**
*  Inline/Expanding date picker for table views.
*/
public class DatePickerCell: UITableViewCell {
    
    /**
    *  UIView subclass. Used as a subview in UITableViewCells. Does not change color when the UITableViewCell is selected.
    */
    class DVColorLockView:UIView {
        
        var lockedBackgroundColor:UIColor {
