I am trying to make a simple application based on 'Utility Application' template.
So, it is supposed to have two view. The 1st view has a picker with a list of poem names, the 2nd view has a simple text view with the text of the selected poem. The picker reads there poem names and contents from a plist file (displaying only the poem names).
What I want to do is to be able to push a button in the first vew, it would read, the selected row in the picker, get the poem contents and then would go to the second view to display it. My problem is: "How to bring the info from the 1st first view to the 2nd?" How to make variables I work with in the 1st view available in the 2nd view?
So, it is supposed to have two view. The 1st view has a picker with a list of poem names, the 2nd view has a simple text view with the text of the selected poem. The picker reads there poem names and contents from a plist file (displaying only the poem names).
What I want to do is to be able to push a button in the first vew, it would read, the selected row in the picker, get the poem contents and then would go to the second view to display it. My problem is: "How to bring the info from the 1st first view to the 2nd?" How to make variables I work with in the 1st view available in the 2nd view?