I'm trying to copy a UIView with some properties. The UIView is overriding the drawLayer: method to draw custom shapes.
I'm using the NSKeyedArchiver, a pasteboard and NSKeyedUnarchiver to get back the properties. An instance of UIView is created and the properties are set - everything is fine till now.
Some properties get created in the drawlayer method, which have the default values, not the copied ones. My question is when initWithCoder is called, and an instance is created, isn't drawRect or drawLayer called? Why?