iphone 如此设置全局变量,为何?

 为什么要像下面那样设置全局变量,理由何在?
             #import "ServiceBase.h"
             NSString *ServerAddress = nil;
             NSString *UserName = nil;
             NSString *Password = nil;
             NSString *SessionID = nil;
          @implementation ServiceBase
          @synthesize connection;
          @synthesize responceData;
          @synthesize delegate;

- (void)dealloc {
[responceData release];
[connection release];
    [super dealloc];
posted on 2012-04-12 15:45  wtq  阅读(308)  评论(0编辑  收藏  举报