ManeuverTableViewDelegate
@objc
public protocol ManeuverTableViewDelegate : AnyObject
The delegate of a ManeuverTableView object must adopt the ManeuverTableViewDelegate
protocol. This protocol lets the ManeuverTableView object to inform its delegate about
updates occurred.
-
Tells the delegate that the specified row and maneuver is selected.
Declaration
Swift
func maneuverTableView(_ tableView: ManeuverTableView, didSelect maneuver: NMAManeuver, at index: Int)Parameters
tableViewA
ManeuverTableViewobject informing the delegate about the new row selection.maneuverThe maneuver associated with the row.
indexThe index of the newly selected row.
-
Tells the delegate the maneuver table view is about to present a maneuver item view.
A maneuver table view sends this message to its delegate just before it presents a maneuver item view, thereby permitting the delegate to customize the maneuver item view object before it is displayed. This method gives the delegate a chance to override state-based properties, such as background and text colors.
Declaration
Swift
@objc optional func maneuverTableView(_ tableView: ManeuverTableView, willDisplay view: ManeuverItemView)Parameters
tableViewThe maneuver table view presenting the maneuver item view.
viewThe maneuver item view to be presented.
View on GitHub
ManeuverTableViewDelegate Protocol Reference