延迟
DispatchQueue.main.asyncAfter(deadline: .now()+0.5, execute:
{
self.backgroundView()?.removeFromSuperview()
self.setBackgroundView(backgroundView: nil)
})
延迟
DispatchQueue.main.asyncAfter(deadline: .now()+0.5, execute:
{
self.backgroundView()?.removeFromSuperview()
self.setBackgroundView(backgroundView: nil)
})
本文标题:swift常用方法
本文链接:https://www.haomeiwen.com/subject/otrpdltx.html
网友评论