BPKCalendarConfiguration

@interface BPKCalendarConfiguration : NSObject

BPKCalendarConfiguration is a subclass of NSObject containing properties which the calendar will use when rendering.

  • The class that will be used for individual cells.

    Declaration

    Objective-C

    @property (readonly, nonnull) Class cellClass;

    Swift

    var cellClass: AnyClass { get }
  • The class that will be used to represent additional cell-data.

    Declaration

    Objective-C

    @property (readonly, nonnull) Class cellDataClass;

    Swift

    var cellDataClass: AnyClass { get }
  • The height that cells should be rendered. When rowHeight isn’t specified the calendar uses a default row height for each cell.

    Declaration

    Objective-C

    @property (readonly, nullable) NSNumber *rowHeight;

    Swift

    var rowHeight: UnsafeMutablePointer<Int32>? { get }
  • Creates a BPKCalendarConfiguration with the specific classes.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCellClass:(nonnull Class)cellClass
                                cellDataClass:(nonnull Class)cellDataClass
                                    rowHeight:(CGFloat)rowHeight;

    Swift

    init!(cellClass: AnyClass!, cellDataClass: AnyClass!, rowHeight: Any!)

    Parameters

    cellClass

    Class to use for individual cells.

    cellDataClass

    Class used to represent additional cell-data.

    rowHeight

    Specify height that calendar rows should be rendered. A sensible default rowHeight will be used if none is specified.

    Return Value

    BPKCalendarConfiguration instance.

  • Creates a BPKCalendarConfiguration with the specific classes.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCellClass:(nonnull Class)cellClass
                                cellDataClass:(nonnull Class)cellDataClass;

    Swift

    init!(cellClass: AnyClass!, cellDataClass: AnyClass!)

    Parameters

    cellClass

    Class to use for individual cells.

    cellDataClass

    Class used to represent additional cell-data.

    Return Value

    BPKCalendarConfiguration instance.