I need to set the alignment of the text in picker view but my solutions doesn\'t work. This is my code so far. I used array to store values on the picker view.
For swift 3 we can use
label.textAlignment = NSTextAlignment.center