CreateEventViewController
class CreateEventViewController : UIViewController
View controller to create event
-
Type of view controler
See moreDeclaration
Swift
private enum ViewType -
Row type
See moreDeclaration
Swift
private enum RowType -
Table view
Declaration
Swift
private let tableView: UITableView -
Sections
Declaration
Swift
private var sections: [[CreateEventViewController.RowType]] -
Event
Declaration
Swift
private(set) var event: Event? -
View type
Declaration
Swift
private var viewType: CreateEventViewController.ViewType { get set } -
Delete button
Declaration
Swift
private let deleteButton: DeleteEventButton -
Event service
Declaration
Swift
private let eventSerivce: EventService -
Event title cell
Declaration
Swift
var eventTitleCell: EventTitleCell? -
Keyboard frame
Declaration
Swift
var keyboardFrame: CGRect?
-
Create event
- param start: Start date
- duration: Duration
Declaration
Swift
func createEvent(start: Date, duration: TimeInterval) -
Edit event
- param event: Event
Declaration
Swift
func editEvent(_ event: Event)
-
Undocumented
Declaration
Swift
override func viewDidLoad() -
Undocumented
Declaration
Swift
deinit -
Undocumented
Declaration
Swift
@objc func keyboardWillShow() -
Undocumented
Declaration
Swift
@objc func keyboardWillHide() -
Update talbe view insets
Declaration
Swift
private func updateTableViewInsets() -
Undocumented
Declaration
Swift
@objc func keyboardWillChangeFrame(notification: NSNotification) -
Undocumented
Declaration
Swift
override func viewDidLayoutSubviews() -
Undocumented
Declaration
Swift
private func updateNavigationItemTitle()
-
Undocumented
Declaration
Swift
@objc private func crossPressed() -
Undocumented
Declaration
Swift
@objc private func tickPressed() -
Undocumented
Declaration
Swift
private func updateSections() -
Undocumented
Declaration
Swift
private func updateViewType() -
Undocumented
Declaration
Swift
private func updateLeftBarButtons() -
Undocumented
Declaration
Swift
@objc private func deletePressed() -
Undocumented
Declaration
Swift
private func confirmDeleteEvent(word: String) -
Undocumented
Declaration
Swift
private func backOrDismiss()
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell -
Undocumented
Declaration
Swift
@objc func planForWeatherChanged(sender: UISwitch) -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int -
Undocumented
Declaration
Swift
func numberOfSections(in tableView: UITableView) -> Int -
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat
-
Undocumented
Declaration
Swift
func eventDateTimeCellDidChange(_ view: EventDateTimeCell)
CreateEventViewController Class Reference