In the ToolbarPressed event handler of a detail view I tried the following to ‘save’ the final results:
// Reset detail view
Dim blank As New BlankView
Self.ParentSplitView.Detail = blank
// Display new gun
Dim gt As New GunTableView
Self.ParentSplitView.Master = gt ' NilObjectException here!
The ParentSplitView is not nil until I change the detail view, then it becomes nil. Why would this occur?
The following is the code I used as a workaround that runs fine.
Dim v As iOSSplitView
v = Self.ParentSplitView
// Reset detail view
Dim blank As New BlankView
v.Detail = blank
// Update master view
Dim gt As New GunTableView
v.Master = gt