GCCalendarView
public final class GCCalendarView: UIView
The GCCalendarView class defines a view containing an interactive calendar.
-
The object that acts as the delegate of the calendar view.
Declaration
Swift
public var delegate: GCCalendarViewDelegate!
-
The display mode for the calendar view.
Declaration
Swift
public var displayMode: GCCalendarDisplayMode!
-
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()