简体   繁体   English

如何根据单元格的大小调整UITableViewCell的annexView的大小?

[英]How to resize a UITableViewCell's accessoryView based on size of cell?

Is it possible for a UITableViewCell's accessory view to be sized based on the size of the UITableViewCell that owns it? 是否可以根据拥有它的UITableViewCell的大小来调整UITableViewCell的附件视图的大小? How can I achieve this? 我该如何实现?

Is this a custom accessory view or one of the standard ones? 这是自定义附件视图还是标准视图之一? The standard ones only centre in the cell (which is still quite useful) rather than resize. 标准的仅位于单元格的中心(这仍然非常有用),而不是调整大小。 However if you push a UISwitch or other custom view as an accessory view then these might resize. 但是,如果将UISwitch或其他自定义视图作为附件视图推送,则这些控件可能会调整大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM