I am using the standard way of making shadows from a button programmatically, but I would like to shadow to no longer exist after I am done with the button. I could set opacity
I usually do the following to be safe.
[[tempButton layer] setShadowOpacity:0.0]; [[tempButton layer] setShadowRadius:0.0]; [[tempButton layer] setShadowColor:nil];
Quartz is highly optimized and will not waste any time rendering if it doesn't have to.