xcode - Calling an external Class Method is causing Crash objective-c -
I have two squares using Box 2D, cocos 2D. Construct.mm and Level1.mm are all included in the construction box. 2D Physics is the information on how to create different objects in the engine engine - plotting objects in level 1 I have in the implementation of the implementation: Construct.mm - Some zero (infant) method (level 1 * level 1 = [[Level1 alloc] init]; [level 1 mapping ];} - (zero) SomeCertrectMath: (Logic) ments {// create rect} I have a level1 implementation: Level1.mm - (zero ) Mapping {Construction * Constr; if (Constr == null) Constr = [[Alloc building] init]; [some Knwrekt Rektmthः (argument)) MMS []; } Now, I know that the level1 * level1 allocation is working fine. It jumps - (zero) mapping {}. Build my problem * Creating constr objects and if it is in the beginning without (constr == zero) statement simulator will die directly, before posting any error report. If I put (constr == zero) and then try calling [constr something CreateRectMethod: a...