Possible Duplicate:
Passing Data between View Controllers
I got an array/dictionary needs to transfer from viewController1
to viewController3
.
Save it into plist or NSUserDefault
is too complicate, and I want to find a more effective way to deal with it.
Do guys have any suggestion for it?
Thanks for your prompt helped in advance.
Resolution: Finally I found out a way to fix the transfer, which is most effective way I think. Firstly, we create a singleton class and make a method for saving the array/dictionary. Then, declare an array object in *.h file. Next step, call this singleton method to save your array. Last step, call the method and you'll get your data~
It seems working pretty well. We don't need to transfer data view to view anymore, cooll~