TTAnnotationImage

Objective-C

@interface TTAnnotationImage : NSObject

Swift

class TTAnnotationImage : NSObject

TTAnnotationImage

  • Init TTAnnotationImage class with GIF image by name

    Declaration

    Objective-C

    + (TTAnnotationImage *_Nullable)createGIFWithName:(NSString *_Nonnull)name;

    Swift

    class func createGIF(withName name: String) -> TTAnnotationImage?

    Parameters

    name

    of image

    Return Value

    TTAnnotationImage class

  • Init TTAnnotationImage class with PNG image by name

    Declaration

    Objective-C

    + (TTAnnotationImage *_Nullable)createPNGWithName:(NSString *_Nonnull)name;

    Swift

    class func createPNG(withName name: String) -> TTAnnotationImage?

    Parameters

    name

    of image

    Return Value

    TTAnnotationImage class

  • Init TTAnnotationImage class with GIF image by name and bundle

    Declaration

    Objective-C

    + (TTAnnotationImage *_Nullable)createGIFWithBundle:(NSBundle *_Nonnull)bundle
                                               withName:(NSString *_Nonnull)name;

    Swift

    class func createGIF(with bundle: Bundle, withName name: String) -> TTAnnotationImage?

    Parameters

    bundle

    containing image

    name

    of image

    Return Value

    TTAnnotationImage class

  • Init TTAnnotationImage class with PNG image by name and bundle

    Declaration

    Objective-C

    + (TTAnnotationImage *_Nullable)createPNGWithBundle:(NSBundle *_Nonnull)bundle
                                               withName:(NSString *_Nonnull)name;

    Swift

    class func createPNG(with bundle: Bundle, withName name: String) -> TTAnnotationImage?

    Parameters

    bundle

    containing image

    name

    of image

    Return Value

    TTAnnotationImage class

  • Init TTAnnotationImage class with PNG image by UIImage

    Declaration

    Objective-C

    + (TTAnnotationImage *_Nullable)createPNGWithUIImage:(id)image;

    Swift

    class func createPNG(withUIImage image: Any!) -> TTAnnotationImage?

    Parameters

    image

    UIImage obejct

    Return Value

    TTAnnotationImage class