Objective-C: Creating a file purely for holding variables -


I would like to add a file to my project, the only purpose is to capture an array

my The problem is that when I create a new file (I am using encode 4), I will add this file to #import , I'm not sure what type of template To choose, and then which subclasses to choose from.

My reason for doing all this is that I have a splitview-based app, and one of these views is a textfield, where my problem is that I am trying to output data Whenever I switch to a different scene and then switch back, only the most recent entry is why I am not 100%, but I suspect that when I switch to a different view, the current view is Is forget about the variables.

There is no good way to do this. What do you want to do: prepareForSegue: If you are using Storyboard, delegation, code is using your view controller in quick form and setting up an asset in the header file. These are just a few ways.

The way you are proposing it is a slippery slope of the C-purpose C code and in the future you are becoming the cause of more headache. Take the time to learn to correct it.

Look for you to think in the right direction.

Comments