GCCalendarView

public final class GCCalendarView: UIView

The GCCalendarView class defines a view containing an interactive calendar.

  • Initializes and returns a newly allocated calendar view object with the specified frame rectangle.

    Declaration

    Swift

    public override init(frame: CGRect)

    Parameters

    frame

    The frame rectangle for the calendar view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This method uses the frame rectangle to set the center and bounds properties accordingly.

    Return Value

    An initialized calendar view object.

  • Initializes and returns a newly allocated calendar view object.

    Use this initializer if you are planning on using layout constraints. If you are using frame rectangles to layout your views, use init(frame:) instead.

    Declaration

    Swift

    public convenience init()

    Return Value

    An initialized calendar view object.

  • Tells the calendar view to select the current date, updating any visible week views or month views if necessary.

    Declaration

    Swift

    public func today()