ARC: How to release static variable?
Will dealloc (below) release the NSString pointed to by the static variable exampleString ? // ExampleClass.h @interface ExampleClass : NSObject @end // ExampleClass.m static NSString *exampleString; @implementation ExampleClass - (void)dealloc { exampleString = nil; } - (id)init { self = [super init]; if (self) { exampleString = [NSString stringWithFormat:@"example %@", @"format"]; } return self; } @end Yes, because since you did not specify an ownership qualifier, the LLVM compiler infers that exampleString has __strong ownership qualification. This means that by setting exampleString to nil