Instance Method

setImageURL:forTraits:

Declaration

- (void)setImageURL:(NSURL *)aURL forTraits:(TVContentItemImageTrait)traits;

Parameters

aURL

The URL corresponding to the image location. This parameter can be an absolute path on the local device or an HTTP path. Specify nil to remove the image associated with the given traits.

traits

The traits to associate with the image. For example, you might specify that the image applies only to dark interfaces.

Discussion

The preferred file format for this image is a layered image file that provides the proper 3d effects. For more information, see App Programming Guide for tvOS.

See Also

Accessing Image Resources

imageURL

A URL giving the location of the image to be displayed for this content item.

Deprecated
- imageURLForTraits:

Retrieve the URL for the image that best matches the specified traits.

Deprecated
TVContentItemImageTrait

Traits describing the type of image you want.