Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以在不绘制黑色矩形并使其透明的情况下做到这一点?对不起我的英语不好,我希望你明白我想要什么。
给定一个名为backgroundView
backgroundView
backgroundView.backgroundColor = [UIColor blackColor]; backgroundView.alpha = 0.8f; backgroundView.userInteractionEnabled = NO;