I am trying to set the shadow in my detail view of the UISplitViewController that I want to see in the main view in iOS 6.
In my Detail ViewController:
self.view.layer.shadowColor = [[UIColor blackColor] CGColor]; self.view.layer.shadowOffset = CGSizeMake(-3.0f, 0.0f); self.view.layer.shadowRadius = 3.0f; self.view.layer.shadowOpacity = 1.0f; self.view.layer.masksToBounds = NO; self.view.clipsToBounds = NO;
However, SplitVC will automatically copy its subviews even when I set it to NO in the above code, and there is no shadow.
Can someone tell me the correct way to achieve this?
source share