Objective C - Static and global variable?
问题 In my .m file for a class named Ad , I have 3 static strings static NSString *AdStateDisabled = @"disable"; static NSString *AdStateExpired = @"expired"; static NSString *AdStateActive = @"active"; I can simply use these static variables in the current class, but i cannot call them from any other class, is there a way to make these static variables global? So for example in my viewcontroller class i can do something like. //HomeViewController.m if ([self.ad.state isEqual:Ad.AdStateDisabled])