Instance Method

imageForResource:

Returns the image for the given resource

Declaration

- (UIImage *)imageForResource:(NSString *)resourceName;

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.

See Also

Retrieving Resource Information

- URLForResource:

Returns a URL for the given resource.