Hello,
I m new to iPhone Platform.I want to make simple game.
In my game i need some data like (Score, levelnumber,etc) throughout game. How can i declare this variables. I know only one way. But i think it is not proper. Create one global.h file. add all global variables in this file & import global.h file when i want to use this data.
I heard about delegate & protocol.
Please tell me which is best way to transfer data between views & track global data throughout app.
Thanks in Advance.
I m new to iPhone Platform.I want to make simple game.
In my game i need some data like (Score, levelnumber,etc) throughout game. How can i declare this variables. I know only one way. But i think it is not proper. Create one global.h file. add all global variables in this file & import global.h file when i want to use this data.
I heard about delegate & protocol.
Please tell me which is best way to transfer data between views & track global data throughout app.
Thanks in Advance.