How do I set the starting row of the picker view in Swift? I see there is a code for Objective C, but I don\'t understand it. If anyone could explain how I can translate th
@IBOutlet weak var mPicker: UIPickerView!
var items: [String] = ["NoName1","NoName2","NoName3"] // Set through another ViewController
var itemAtDefaultPosition: String? //Set through another ViewController
//..
//..
var defaultRowIndex = find(items,itemAtDefaultPosition!)
if(defaultRowIndex == nil) { defaultRowIndex = 0 }
mPicker.selectRow(defaultRowIndex!, inComponent: 0, animated: false)