摘要:
转自:http://www.cocoachina.com/bbs/read.php?tid-73476.html 阅读全文
摘要:
There is a much easier way to declare a global variable. Declare it like an ordinary C-style global, outside of any @interface...@end block in some .H file:Code: extern BOOL amIaVirgin;Then define it in some .M file, but outside of any @implementation... @end block:Code: BOOL amIaVirgin;Then it is.. 阅读全文