What is the difference between __weak UIImage *image and UIImage *__weak image
in iOS ? And is the __weak necessary with ARC ?
I have seen this code pattern in may examples wherein the UIImage is created programmatically in iOS but, is this pattern still necessary ? Ad also what is the difference between putting it before UIImage and after the pointer *
And for the record I am not asking about strong vs weak, I am asking about the whether __weak is necessary in the case I mentioned and if so does it have anything to do with the placement of __weak. As an example
UIGraphicsBeginImageContextWithOptions(label.bounds.size, YES, [[UIScreen mainScreen] scale]);
[label.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *__weak icon = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();