NSString *strongObj = [[NSString alloc] init]; //alloc and initialze a new instance
strongObj = @"some value"; //set value to a instance
__weak NSString *weakObj = strongObj; //refer strong pointer to weak obj
strongObj = nil; //set strong object to nil and remove it from memory
strongObj = @"some value 2"; //assign a different value to strong obj
weakObj ; // weak obj still holds // @"some value" // this value event i've set the week obj pointer to nil
pls look at the above code and comments, the comments are my views/assumptions. Pls clarify.
Thanks