2016-04-25 7 views

答えて

1

......これは
あなたのViewControllerその後、あなたの大手と同様に末尾にアウトレットセット

@property (strong, nonatomic) IBOutlet NSLayoutConstraint *cnstViewLeading; 
@property (strong, nonatomic) IBOutlet NSLayoutConstraint *cnstViewTrailing; 

をしてプロパティの下に追加


をお試しください

この

// replace value whatever you want with 0 
    self.cnstViewLeading.constant = 0; 
    self.cnstViewTrailing.constant = 0; 
のように使用します
0

NSLayoutContraintのアウトレットを作成し、必要に応じて定数を更新することができます。定数を更新した後にview.layoutIfNeeded() と呼ぶ必要があります。または、パーセンテージワイズレイアウトに乗数を使用することもできます。

関連する問題