resourceImage(name:)
Returns the image for the given resource
Declaration
optional func resourceImage(name resourceName: String) -> UIImage?Parameters
- resourceName:
A string that contains the name of the resource.
Return Value
The UIImage associated with the resource name. Returns nil if no image matches the resource name or if the event is not handled.
Discussion
The resourceName parameter comes from a resource URL specified in certain elements. For example, <``badge src="resource://developer-resource"> contains the resource name, developer-resource.