Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom UITableViewCell or UICollectionViewCell s key archive issue on iOS 6 #8

Closed
SteveFortune opened this issue Dec 16, 2013 · 7 comments
Milestone

Comments

@SteveFortune
Copy link
Member

On iOS 6, if you subclass UITableViewCell or UICollectionViewCell and add subviews as properties to your custom cell they are issues with the duplicate dragging cell - the new subviews that you've added are usually not encoded/decoded for the duplicate dragging view. At present you must implement your own archiving mechanism in the subclass for your custom cell subviews.

I will provide examples on how to do this shortly.

@dscoleman
Copy link

I believe I am seeing this exact issue with my code. Do you have any suggestions or examples for how I can manage the archiving mechanism on my custom cell subviews?

@SteveFortune
Copy link
Member Author

In my app, this issue manifested itself in custom dragging cells not having the correct backgroundColor. You need to make your custom table/collection cells archiveable with initWithCoder. I have a solid example of how to do this, so I'll push it up when I get a chance.

@dscoleman
Copy link

Excellent. Thanks for the info and thanks in advance for example.

@SteveFortune
Copy link
Member Author

No worries. Off the top of my head, I think I used the NSCoder passed to initWithCoder to inflate custom properties into the custom table cell subviews then overrode UIView decode* methods to encode the properties. Again, will confirm when I get a chance.

@SteveFortune
Copy link
Member Author

@dscoleman Finally got round to adding the example, you can find it in the Example dir.

@SteveFortune SteveFortune added this to the 2.0.0 milestone Sep 18, 2014
@SteveFortune
Copy link
Member Author

See my comments on #29

@SteveFortune
Copy link
Member Author

Fixed for v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants