ここでは、画像とバナー表示にはnil
の代わりに、私が使用したコードを示します。
スーパービューから削除
self.adBannerView.removeFromSuperview()
self.bottomGreyArea.removeFromSuperview()
self.view.addConstraint(NSLayoutConstraint(item: nextButton, attribute: .bottom, relatedBy: .equal, toItem: self.bottomLayoutGuide, attribute:.top, multiplier: 1, constant: 0))
self.view.addConstraint(NSLayoutConstraint(item: backButton, attribute: .bottom, relatedBy: .equal, toItem: self.bottomLayoutGuide, attribute:.top, multiplier: 1, constant: 0))
self.nextButton.translatesAutoresizingMaskIntoConstraints = false
self.backButton.translatesAutoresizingMaskIntoConstraints = false
すべての制約をクリアし、私はその後、以前bottomGreyArea
に依存ボタン(に関連する制約を再構築。すべてが再び世界にもある!
あなたが示してもらえあなたのコード? – dfd
@dfdあなたにとって最も役に立つコードは何ですか?制約はストーリーボードを使って作成されているので、投稿しませんでした。 – matador0227
画像を前後にアップロードすると、人々があなたの問題を理解するのに役立ちます。 – Puttin