我需要建议如何继续。如何在Swift的主视图中添加子视图
如何稍微调暗主视图并显示一些繁忙指示灯,持续某个动作,然后取消调光?
在Swift语言中。
谢谢!
UPD:在Objective-C我使用早期是这样的:
UIView *dimView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];
dimView.backgroundColor = [UIColor blackColor];
dimView.alpha = 0.5f;
dimView.tag = 1111;
dimView.userInteractionEnabled = NO;
[self.view addSubview:dimView];
如何验证码,我们可以做到这一点的斯威夫特?
对于调光放置覆盖视图。对于指标使用活动指标视图。什么是困难的部分? – matt
对于swift,将代码翻译成swift。什么是困难的部分? – matt
你有没有读过关于_Swift_的任何_basics_呢?像免费书,例如... https://developer.apple.com/library/prerelease/mac/documentation/Swift/Conceptual/Swift_Programming_Language/index.html – holex