TransWeb
| Last Revision: | |
| Build Requirements: | iOS 4.0 SDK or later |
| Runtime Requirements: | iPhone OS 3.2 or later |
Demonstrates how to implement UIWebView with a transparent background.
To achieve this you need to make the HTML body's background color transparent by doing the following -
1) set the UIWebView's backgroundColor property to [UIColor clearColor]
2) use the UIWebView's content in the html: <body style="background-color: transparent">
3) the UIWebView's opaque property set to NO
© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-06-25)