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
tableView
A
ManeuverTableView
object informing the delegate about the new row selection.maneuver
The maneuver associated with the row.
index
The 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
tableView
The maneuver table view presenting the maneuver item view.
view
The maneuver item view to be presented.