INVImageTextDataSource

Objective-C

@protocol INVImageTextDataSource <INVImageDataSource>

Swift

protocol INVImageTextDataSource : INVImageDataSource

셰이프에서 사용하는 이미지 리소스를 NSString으로 구성하면 title을 포함해 기본 배경이 있는 이미지로 구성하는 프로토콜

  • 이미지로 변환할 NSString을 구성해야 합니다.

    Declaration

    Objective-C

    - (nonnull NSString *)titleWithShape:(nonnull INVShape *)shape;

    Swift

    func title(with shape: INVShape) -> String

    Parameters

    shape

    이미지를 사용하는 INVShape 객체.

    Return Value

    기본 이미지로 변환할 NSString 객체.