Instance Method

imageWithBaselineOffsetFromBottom:

Creates a new image with a baseline located at the specified offset from the bottom of the image.

Declaration

- (UIImage *)imageWithBaselineOffsetFromBottom:(CGFloat)baselineOffset;

Parameters

baselineOffset

The position of the baseline, relative to the bottom of the image. Specify this value in points, where positive values move the baseline up from the bottom of the image and negative values move the baseline down.

Return Value

A new image object containing the baseline information.

Discussion

Use this method to create an image with the specified baseline information. You might add a baseline to your custom images so that you can incorporate them into text-based layouts. You can also use this method to change the baseline information on an image.

See Also

Changing the Image Attributes

- imageWithConfiguration:

Returns a new version of the current image, replacing the current configuration attributes with the specified attributes.

Beta
- imageByApplyingSymbolConfiguration:

Returns a new version of the current image, applying the specified configuration attributes on top of the current attributes.

Beta
- imageFlippedForRightToLeftLayoutDirection

Returns a new version of the current image, prepared to flip horizontally when it’s in a right-to-left layout.

- imageWithHorizontallyFlippedOrientation

Returns a new version of the image whose orientation is the mirror of the original image.

- imageWithRenderingMode:

Returns a new version of the image configured with the specified rendering mode.

- imageWithAlignmentRectInsets:

Returns a new version of the image that uses the specified alignment insets.

- resizableImageWithCapInsets:

Returns a new version of the image that contains the specified cap insets.

- resizableImageWithCapInsets:resizingMode:

Returns a new version of the image with the specified cap insets and options.

- imageWithoutBaseline

Creates a copy of the current image object without any baseline information.

Beta
UIImageConfiguration

A configuration object containing the traits that the system used when selecting the current image variant.

Beta
UIImageSymbolConfiguration

An object containing the specific font, size, style, and weight attributes to apply to a symbol image.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software