iOS:动画xcode 9之后的UI故障

时间:2017-11-08 04:58:48

标签: ios animation uiview

我在动画后看到了这个奇怪的绿线。知道为什么会这样吗? (我想我之前没有看到它,它发生在xcode 9之后的某个时间)

    UIView.animate(withDuration: 0.3, animations: {
        self.noticeBarHeight?.constant = 42
        self.view.layoutIfNeeded()
    })

    delayOnMainThread(3, block: { [weak self] in
        UIView.animate(withDuration: 0.3, animations: {
            self?.noticeBarHeight?.constant = 0
            self?.view.layoutIfNeeded()
        })
    })

Glitch

0 个答案:

没有答案