iOS: reset pivot to default

This commit is contained in:
pengfei.zhou 2021-12-28 16:35:37 +08:00 committed by osborn
parent 41b74312cb
commit e822797166

View File

@ -946,6 +946,8 @@ - (void)reset {
self.view.layer.cornerRadius = 0; self.view.layer.cornerRadius = 0;
self.view.layer.mask = nil; self.view.layer.mask = nil;
self.view.layer.anchorPoint = CGPointMake(0.5f, 0.5f);
self.view.layer.borderWidth = 0; self.view.layer.borderWidth = 0;
self.view.layer.borderColor = UIColor.clearColor.CGColor; self.view.layer.borderColor = UIColor.clearColor.CGColor;
for (UIGestureRecognizer *gestureRecognizer in self.view.gestureRecognizers) { for (UIGestureRecognizer *gestureRecognizer in self.view.gestureRecognizers) {