Subtitle (2nd row) for UIPickerView and viewForRow in Swift
<p>I'm trying to implement something like the subtitle of a UITableViewCell look like in my pickerView. This is how I implement the title, but I would like to have another string array that will be shown in smaller font just underneath but before the next row.    </p>

<pre><code>func pickerView(pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusingView view: UIView?) -&gt; UIView {
    var pickerLabel = view as! UILabel!
    if view == nil {
        pickerLabel = UILabel()
    }
    let titleData = List[row]
    let myTitle = NSAttributedString(string: titleData, attributes: [NSFontAttributeName:UIFont(name: "Helvetica Neue", size: 17.0)!,NSForegroundColorAttributeName:UIColor.whiteColor()])
    pickerLabel!.attributedText = myTitle
    pickerLabel!.textAlignment = .Center

    return pickerLabel
}
</code></pre>

<p>Any advice? Examples?</p>

<p>Thank you in advance.</p>