Question

I have few custom controls (image views) added programmatically to table cell. I want to hide them when table view goes into editing mode and show them again when view gets out of editing mode. I'm not using UITableViewCell subclasses, controls are added through tableView:cellForRowAtIndexPath: method.

When and where should I do the hide/show?

I'm wondering is this even possible without subclassing (where I could do this in layoutSubviews)...

Was it helpful?

Solution 2

This is not possible without subclass.

Int he subclass, override layoutSubviews method and then write the code to control the layout.

OTHER TIPS

I think you can set the hidden property on the uiimageview

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top