I actually try to change my Applications to support ARC (no, this is not NDA) but there I’ve a problem:
for animations i set first the alpha of the view to 0, then I add it as a Subview. After Adding I make the animation.
But when I’ve active ARC, the View gets released when I set the alpha of the view to 0, or when I hide the View.
Is there a way to hide the view, that ARC doesn’t release the object?
If you add it as a subview, the superview will take ownership and the view itself will not be released. You could also add an instance variable or
@propertyand assign it there, to keep another reference, but I don’t think you need to.