使用CGAffineTransformMakeScale和白色背景缩放UIView

使用CGAffineTransformMakeScale和白色背景缩放UIView,uiview,Uiview,我尝试缩放视图。在UIview外部有一个白色背景。我怎样才能把它拿出来只看背景视图?谢谢 self.view.transform = CGAffineTransformMakeScale(.5,.5); [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.9]; self.view.transform = CGAffineTransformMakeScale(1,1); [UIView commitA

我尝试缩放视图。在UIview外部有一个白色背景。我怎样才能把它拿出来只看背景视图?谢谢

self.view.transform = CGAffineTransformMakeScale(.5,.5);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.9];
self.view.transform = CGAffineTransformMakeScale(1,1);
[UIView commitAnimations];

尝试将需要透明的视图的背景色设置为[UIColor clearColor]:

myView.backgroundColor = [UIColor clearColor];

尝试将需要透明的视图的背景色设置为[UIColor clearColor]:

myView.backgroundColor = [UIColor clearColor];