fileprivate func hideViewWithAnimation() {
UIView.animate(withDuration: 0.3, animations: { [weak self]
if self == nil {
return
}
self!.view.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
self!.constraintContainerViewBottom.constant = -Constants.screenHeight()
self!.constraintContainerViewTop.constant = Constants.screenHeight()
self!.view.layoutIfNeeded()
}, completion: { (isCompleted) in
self.navigationController?.dismiss(animated: false, completion: nil)
})
}
「弱い自己」に「、」を使用して区切りを示すエラーが表示されます。 Tj3nは、例えば、あなたが[weak self]
構文を使用する場合、あなたはin
キーワードを必要とし、言ったように私は間違っ[弱い自己]が次のコードでエラーを起こしています:期待された '、'セパレータ
'[弱い自己] in'、あなたは' in'を持っていません – Tj3n