Information Technology Reference
In-Depth Information
TIP
To make the image view transparent, select the Clear Color from the default list or set the Opacity to 0 in the Col-
or Picker. Occasionally, you may want to include a dummy view that collects and processes events before passing
them on to other objects. To do this, use a transparent view managed by its own subclass code.
Importing an image file
For more complex static effects, you can import an image file. This example demonstrates how to import a file
for a full-sized background view that creates a wallpaper effect. The procedure for customizing button graphics
is very similar.
You also can extend the procedure to create custom objects such as radio buttons or game tokens. Active fea-
tures require extra code.
To add a media file, right-click the Resources group in the Project Navigator and select Add Files to <Project
Name>… When the dialog box shown in Figure 8.12 appears, navigate to a suitable file. In this example, the
project uses a PNG file prepared in Adobe Photoshop and pre-trimmed to 320x460 pixels.
TIP
Search WWH ::




Custom Search