0

次の制約があります。

[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[drawerView(==tapView)]|" options:0 metrics:nil views:viewDictionary]

それを使ってアニメーションを実行したいので、パラメータ化する必要があります。同じことをしたいのですが、APIを使用しています。これは私が試したものですが、うまくいきません:

[NSLayoutConstraint constraintWithItem:drawerView
                             attribute:NSLayoutAttributeHeight
                             relatedBy:NSLayoutRelationEqual
                                toItem:self.drawerMenuVC.tapView
                             attribute:NSLayoutAttributeHeight
                            multiplier:1.0
                              constant:0]

私が望むのは、両方のビューの高さを同じにすることです。

4

1 に答える 1