From Xojo Documentation

Revision as of 17:49, 23 August 2018 by PLefebvre (talk | contribs) (Created page with "{{PropertyBox | name=ParentSplitView | owner=iOSView | ownertype=class | readonly=yes | scope=public | type=iOSSplitView | project=Mobile | target=iOS }} {{Description...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Read-Only Property (As iOSSplitView )
iOSSplitViewValue = aiOSView.ParentSplitView

Supported on Mobile (iOS).

Indicates the split view that is the owner of this View. It is Nil is there is no split view. A split view can only be used on iPad devices.


Use this property to determine if a SplitView is displayed. You can then use it to get access to the Master and Detail views that are displayed.

Sample Code

If a SplitView is used, then populate the detail side, otherwise, push a new view onto the screen:

If Self.ParentSplitView <> Nil Then
// On Action event for a Table on a Master view of the SplitView.
// Gets the Text for the selected row and
// assigns it to a Label on the DetailView of the SplitView.
DetailView(Self.ParentSplitView.Detail).Label1.Text = Me.RowData(section, row).Text
// No SplitView, so this is a phone.
// Display the Detail view and update the text for its label.
Dim d As New DetailView
d.Label1.Text = Me.RowData(section, row).Text
End If