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:
self.layer.borderWidth
the "layer" that you are trying to make hidden is the layer of the object that you are having a shadow to it's not a visible aspect.. only the objects with in the layer... it's rather confusing to conceptualize anyways, the only way to remove the shadow is to undo what you originally did, which was suggested above, there is no defined property that you can just toggle a bool and make the shadow go away