Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You cannot add subviews to buttons, but you can certainly creatively layer art in front of or behind them. Use the standard UIView hierarchy to do this, making sure to disable user interaction for any view that might otherwise obscure your button (setUserInteractionEnabled:NO). Figure 8-2 shows what happens when you combine semitranslucent button art with an animated UIImageView behind it. The image view contents “leak” through to the viewer, enabling you to add live animation elements to the button.