I have done many things to do it but I got no answer I am using core data... and All of a sudden the problem gets worst so what should I do ? (I can give U my whole project to examine it better)
Asked
Active
Viewed 135 times
-6
-
whats your problem? Please describe it in detail. – Usman Javed Jul 25 '17 at 13:14
-
Without a **Minimal, Complete, and Verifiable example**, your question is considered off-topic here, since questions seeking debugging help **must** include the relevant code and a description of the expected behaviour. Have a look at [How to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) before including any code in the question and definitely don't include your whole project. – Dávid Pásztor Jul 25 '17 at 13:18
1 Answers
2
Basic Step:
1) Get value from Picker : => use below datasource method
func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)
{
// use the row to get the selected row from the picker view
// using the row extract the value from your datasource (array[row])
// Put code for add value on UILabel
}
2) Send it to another view controller

Govaadiyo
- 5,644
- 9
- 43
- 72
-
I think the best method would be: picker.selectedRow(inComponent: 0) – Serhii Didanov Jul 25 '17 at 13:24
-
Yes but It will be returned Index and we can get value from the array. – Govaadiyo Jul 25 '17 at 13:32
-
Please don't post answers to such unclear questions. There is no possible way to provide a good answer when we have no idea what the actual issue is. – rmaddy Jul 25 '17 at 15:44
-
-
-
1Believe me I couldn't ask it so much clearer I wanted a output of picker view in another label in a whole another VC and I am a beginner So that was the best shot of mine @rmaddy – Atrin Noori Jul 26 '17 at 01:04