Saturday, October 5, 2013

objective c alloc address 0x00000000

Heroes, help!

Custom FirstViewController f;
f = [[FirstViewController alloc] init];

f The address is 0x00000000, because there are lazy or something what, why ah?
Reply:
FirstViewController * f = [[FirstViewController alloc] init];
Reply:
Sorry, this clerical error, the program does not crash Baocuo No, only in the class in creating this address 0x00000000, some methods can be called normal
Reply:
Heroes, help!

Custom FirstViewController * f;
f = [[FirstViewController alloc] init];

f The address is 0x00000000, because there are lazy or something what, why ah?


Sorry, not for this reason, a typo!
Reply:
Class init method rewrite yet?



ios developed super group, to those who indicate from CSDN: 43146334
Reply:
You get him into that place a chant nil
Reply:
0x00000000 == nil bar

No comments:

Post a Comment