iOS Developer Library

Developer

ApplicationServices Framework Reference Core Text Utilities Reference

Options
Deployment Target:

On This Page
Language:

Core Text Utilities Reference

This reference document describes miscellaneous symbols that are either used by many different opaque types or apply to Core Text as a whole.

Functions

  • Returns the version of the Core Text framework.

    Declaration

    Swift

    func CTGetCoreTextVersion() -> UInt32

    Objective-C

    uint32_t CTGetCoreTextVersion ( void );

    Return Value

    The version number. This value is for comparison with the constants listed in “Core Text Framework Version Numbers”.

    Discussion

    This function returns a number indicating the version of the Core Text framework. Note that framework version is not always an accurate indicator of feature availability. The recommended way to use this function is first to check that the function pointer is non-null, followed by calling it and comparing its result to a defined constant (or constants). For example, to determine whether the CoreText API is available:

    • if (&CTGetCoreTextVersion != NULL && CTGetCoreTextVersion() >= kCTVersionNumber10_5) {
    • // CoreText API is available
    • }

    Import Statement

    import CoreText

    Availability

    Available in iOS 3.2 and later.

Constants

  • Version numbers of the Core Text framework.

    Declaration

    Objective-C

    #define kCTVersionNumber10_5 0x00020000 #define kCTVersionNumber10_5_2 0x00020001 #define kCTVersionNumber10_5_3 0x00020002 #define kCTVersionNumber10_5_5 0x00020003 #define kCTVersionNumber10_6 0x00030000

    Constants

    • kCTVersionNumber10_5

      kCTVersionNumber10_5

      The Core Text framework version in OS X version 10.5.

      Available in iOS 3.2 and later.

    • kCTVersionNumber10_5_2

      kCTVersionNumber10_5_2

      The Core Text framework version in OS X version 10.5.2.

      Available in iOS 3.2 and later.

    • kCTVersionNumber10_5_3

      kCTVersionNumber10_5_3

      The Core Text framework version in OS X version 10.5.3.

      Available in iOS 3.2 and later.

    • kCTVersionNumber10_5_5

      kCTVersionNumber10_5_5

      The Core Text framework version in OS X version 10.5.5.

      Available in iOS 3.2 and later.

    • kCTVersionNumber10_6

      kCTVersionNumber10_6

      The Core Text framework version in OS X version 10.6.

      Available in iOS 3.2 and later.

    Import Statement