This code is working on the iPad 4S, however, it results in a crash when ran on an iPad 1.
The code is not using ARC, ( I do not wish to use ARC either as I am trying to grasp the concept of memory management).
The implementation file on pastebin
The code is a Coin Flip App, the user can select the amount of coins from a different class, and this value is accessed by the implementation file.
I initially thought the Arrays were giving me the trouble. From my understanding of memory management, I have declared them as @property(nonatomic, retain)
, meaning that I have ownership and thus must release them in the dealloc
method.
The dealloc
method is called once the retainCount
of an object reaches 0. I have tried my best to understand the problem.
But I am unsure if there is one, as the code works on the 4s.