私はiPad用に開発しています。テーブルビューのセルの右に拘束しようとすると、画面の右側に拘束され、行の区切り線には拘束されません。ビューをテーブルビューの区切り線の端に拘束する方法は?
declineButton?.centerYAnchor.constraint(equalTo: contentView.centerYAnchor).isActive = true
declineButton?.rightAnchor.constraint(equalTo: contentView.rightAnchor, constant: -10).isActive = true
declineButton?.heightAnchor.constraint(equalToConstant: 18).isActive = true
declineButton?.widthAnchor.constraint(equalToConstant: 18).isActive = true
上記のコードは、右端に拘束しています。
例:右側の「フォロー」ボタンがセパレータの端にどのように拘束されているかに注目してください。 UITableViewCell
の