Open EgorkZe opened 10 years ago
I have the same problem but only with the cell accessory disclosure indicator. I implemented this on a cell that drills down to another screen, so they can swipe or click. If they swipe, the little arrow on the right side does not move. Any way to detect the swipe and hide the disclosure indicator?
@lususvir I am running into the same issue. Did you find a fix?
I didn't find a fix for it. I think I just hid the accessory disclosure indicator and put an icon there so that it moved with the rest of the content.
Thanks for the response!
That's basically what I've settled on as well.
I'm having the same issue as @lususvir. It's just the disclosure indicator that doesn't move. Also, the bottom separators of the cells are having some right margin, which I didn't set.
Just found out that programmatically setting the accessoryType (after setting right/left utility buttons) works fine. The problem only occurs when the accessoryType has been set in nib/storyboard (tried both).
Interesting. I'm not using nibs but I do have this issue. I set the accessoryType programmatically but before setting utility buttons.
I faced this same issue, and it had to do with adding subviews manually in the code.
I solved it by creating the elements in the xib/storyboard and then connect them with outlets in the class. It helps also adding auto layout constraints to the elements from the cell.
If you are subclassing SWTableViewCell, pragmatically creating your view, add it to self, use autolayout, this behavior exists as well. It's kind of a hacky solution right now, but I was able to get past it by adding my subviews to self.subview[0].subview[0] and set my constraints around this as the superview. This work because the scrolling piece hooks on to self.subview[0].subview[0] if I'm not mistaken.
I inserted code:
But Utility Button overlays cell's content and not move it