VOActionSheetItem

@interface VOActionSheetItem : NSObject

VOActionSheetItem represents one item inside a VOActionSheetViewController.

  • The title shown inside the VOActionSheetItem - the title is center aligned

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *_Nonnull title;

    Swift

    var title: String { get }
  • The image shown inside the VOActionSheetItem - the image is left aligned

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) UIImage *_Nonnull image;

    Swift

    var image: UIImage { get }
  • Default initializer for VOActionSheetItem

    Declaration

    Objective-C

    + (nonnull VOActionSheetItem *)
        vouchrActionSheetItemWithTitle:(nonnull NSString *)title
                                 image:(nonnull UIImage *)image;

    Swift

    class func vouchrActionSheetItem(withTitle title: String, image: UIImage) -> VOActionSheetItem

    Parameters

    title

    - the title for the action sheet item

    image

    - the image for the action sheet item

    Return Value

    instance of VOActionSheetItem