KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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];
Tags (comma-separated)
Save Edits
Cancel