【发布时间】:2011-09-12 11:16:55
【问题描述】:
settingView = [[UIView alloc] initWithFrame:CGRectMake(300,-400, 400, 325)];
settingView.backgroundColor = [UIColor whiteColor];
[self.view addSubview:settingView];
CGRect frame = settingView.frame;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.500];
frame.origin.y = 0;
settingView.frame = frame;
**[self.view setAlpha:.30f];
[self.settingView setAlpha:1.0f];**
[UIView commitAnimations];
我希望背景模糊,除了 settingView。但整个观点都受到了影响。我做错了什么?
【问题讨论】: