I'm trying to understand how does __weak works in ARC code. Here is my example:
NSString *string = @"Hi!"; //1
__weak NSString *secondString = string; //2
string = @"Hello world!"; //3
NSLog(@"STR: %@", secondString); //4
I expect that NSLog shows me "nil", but it shows "Hi!". Why? This string must be dealloced at the third line.