I am trying to convert an old non-ARC project to ARC and I am getting this compilation error: "cannot capture __autoreleasing variable in a block"
- (void)animateViewController:(__autoreleasing animatingViewController *)viewController { //[[viewController retain] autorelease]; // I replaced this with __autoreleasing [UIView animateWithDuration:0.14 animations:^{ [[viewController view] setAlpha:0.0]; } completion:^(BOOL finished) { [viewController.view removeFromSuperView]; }]; }
_autoreleasing
. Don't "replace" what you had with anything (what you had was nutty too). – matt__autoreleasing
? – Nikolai Ruhe