I’m trying to use a split view in landscape on an iPad. The master view contains a table, and depending on whether an Action or AccessoryAction event occurs, I want to change the detail side to a different View altogether. How is this done?
OK, I think I figured it out. In the AccessoryAction event handler:
If Self.ParentSplitView <> Nil Then
Dim v As New GunDetailView
Self.ParentSplitView.Detail = v
// Use Model as Title
GunDetailView(Self.ParentSplitView.Detail).Title = CompletedGun(row).Model
Else
Dim gundetails As New GunDetailView
// Use Model as Title
gundetails.Title = CompletedGun(row).Model
Self.PushTo(gundetails)
End If
Does this seem correct?
When I change the detail view, what happens to the old one? It doesn’t get “popped” so do I somehow need to delete it or does it just go away on its own?
When you use PushTo, They’re kept, like a stack of cards. When they close the top most view, the previous one comes back into view.
Thanks, Greg. I understand that case. I was wondering about the other case where I replace an existing view without using PushTo.