I do not understand how to remove a shadow that was added to a view. I add to my view in initWithFrame a shadow in this way:
initWithFrame
self.layer.borderWidth
Sorry, not sure the correct way, but have you tried changing the properties of the layer shadow? For example, one of these;
layer shadow
layer.shadowOffset = CGSizeMake(0, 0); layer.shadowColor = [[UIColor clearColor] CGColor]; layer.cornerRadius = 0.0f; layer.shadowRadius = 0.0f; layer.shadowOpacity = 0.00f;