我需要建议如何进行.
@H_502_14@如何稍微调暗主视图并显示一些繁忙的指示灯,持续一段时间的动作,然后去除调光?
用Swift语言
谢谢!
UPD:在Objective-C中,我早期使用这样的东西:
UIView *dimView = [[UIView alloc] initWithFrame:CGRectMake(0,320,460)]; dimView.backgroundColor = [UIColor blackColor]; dimView.alpha = 0.5f; dimView.tag = 1111; dimView.userInteractionEnabled = NO; [self.view addSubview:dimView];
我们可以在Swift中如何使用此代码?