iphone - How do you transfer data between UIViewControllers? -


Currently I'm making a game for the iPhone, and want to be at each level different uiviewcontroller (I have them all Has attempted to put on the same view controller, but it just makes it jumpy). However, I would like a way to get high marks in the level view controller and send it back to the menu view controller. I am using code:

  second levelviewer * screen = [[second transactionweaver controller] initWithNibName: zero bundle: zero]; Screen. Modal Transition Style = Uomodal Transition Style Cross DeSilve; [Self current model view controller: animated screen: yes]; [Screen release];   

to access the view controller and

  [reject yourself Model View Controller unauthorized: Yes];   

To get back I'm familiar with NSUserDefaults, which I am currently using to get high scores. However, I know that it resets the code level view controller, which is still fine and even great because I want to reset the level - but if I can only get data back then Will be helpful.

Please talk in simple words, because I am very new to programming.

Thanks in advance!

Steve Baker

PS I am using xcode 4.0 ...

--------------- ----------------------------- as well -------------------- ----------------- The code I am using, I can only do the transition "how to get flip horizontal", "coverwritical", and "crossdisolve" ... understand. ..but I have seen many other cool changes on the iPhone - like a page in a page like flipping page corners. If you know how to make these other changes, please tell me !!!! Much appreciated !!!!!

is more standard to achieve all levels at the same level UIViewController Unless the argument is so different that it is like playing different games, however, you can make a full use of different methods to achieve it. For example, you can use, or plist.

Comments