使用CGAffineTransformMakeScale和白色背景缩放UIView

时间:2010-08-10 15:48:45

标签: 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 commitAnimations];

1 个答案:

答案 0 :(得分:1)

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

myView.backgroundColor = [UIColor clearColor];