-6

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)

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116
Atrin Noori
  • 311
  • 3
  • 12
  • 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 Answers1

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

How do you pass data between view controllers in Swift?

Govaadiyo
  • 5,644
  • 9
  • 43
  • 72