How do I handle resizing a subview in a UITableViewCell going in and out of EDIT MODE?

QUESTION - How to handle resizing a subview in a UITableViewCell coming in and out of EDIT MODE?

REFERENCE INFORMATION. I developed how to adjust the size of UiLabels and UITableViewCell based on the text and font used. I currently doign this in cellForRowAtIndexPath (I programmatically create UILabels and add as subviews to the existing contentView)

ASPECTS - So I hope the answer clarifies everything to me, including:

  • Is the approach based on the fact that every time a UITableView goes into edit mode and exits it, it is necessary to manually override the position of the subset (e.g. UILabel) (e.g. x / y / height / width)?

  • If YES - what methods would normally do this? e.g. cellForRowAtIndexPath?

  • If YES - from the point of view of ensuring EDIT mode, can we assume that the standard (unchanged) amount of reduction (in pixels) for the displayed edit icons?

  • If NO - What is the approach here? use scaling somehow? which attributes will be configured so that this happens automatically.

thank

+3
source share
1 answer

Got an answer to this here really.

0
source

All Articles