Is it possible to scale a UIView down to 0 (width and height is 0) using CGAffineTransformMakeScale?
view.transform = CGAffineTransformMakeScale(0.0f, 0.0f);
Why would this throw an error of "<Error>: CGAffineTransformInvert: singular matrix.
" ?
Update: There is another way of scaling down a UIView to 0
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.3];
view.frame = CGRectMake(view.center.x, view.center.y, 0, 0);
[UIView commitAnimations];