Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UITableViewグループ化されたスタイルを検討してください。セルにサブビューを追加し、マージンをハードコーディングせずに、テーブル ビュー グループの右 (または左) の境界線に揃えるにはどうすればよいですか?
UITableView
セルのにサブビューを追加しcontentViewます。セルに追加されたマージンやその他のcontentViewアクセサリに合わせて調整されます。
contentView
accessoryTypeこれは、またはaccessoryView設定がない場合にのみ機能することに注意してください。
accessoryType
accessoryView