Difference between revisions of "iOSControl"

From Xojo Documentation

Line 10: Line 10:
  
 
<dynamicTable id="Events" class="eventTable" title="Events" columns="3">
 
<dynamicTable id="Events" class="eventTable" title="Events" columns="3">
{{Event | name=Close | description=LowMemoryWarning()&#10;Called when iOS reports a low-memory situation.}}
+
{{Event | name=Close | description=Close()&#10;Called when the control is removed from its container, such as a view.}}
{{Event | name=Open | description=Open()&#10;Called when the iOS app is first launched.}}
+
{{Event | name=Open | description=Open()&#10;Called after the control is created.}}
 
</dynamicTable>
 
</dynamicTable>
  
 
<dynamicTable id="Properties" class="propertyTable" title="Properties" columns="3">
 
<dynamicTable id="Properties" class="propertyTable" title="Properties" columns="3">
{{Property | name=AccessibilityHint | description=(Text)The currently displayed screen.}}
+
{{Property | name=AccessibilityHint | description=(Text)A longer description that is read aloud when VoiceOver is enabled.}}
{{Property | name=AccessibilityLabel | description=(Text)The currently displayed screen.}}
+
{{Property | name=AccessibilityLabel | description=(Text)A short name that is read aloud when VoiceOver is enabled.}}
{{Property | name=Height | readonly=yes | description=(Double)The currently displayed screen.}}
+
{{Property | name=Height | readonly=yes | description=(Double)The height of the control.}}
{{Property | name=Left | readonly=yes | description=(Double)The currently displayed screen.}}
+
{{Property | name=Left | readonly=yes | description=(Double)The left position of the control.}}
{{Property | name=Name | readonly=yes | description=(Text)The currently displayed screen.}}
+
{{Property | name=Name | readonly=yes | description=(Text)The name of the control. This can only be set in the Inspector. Use the name to refer to the control.}}
{{Property | name=Parent | readonly=yes | description=(iOSControl)The currently displayed screen.}}
+
{{Property | name=Parent | readonly=yes | description=(iOSControl)Indicates the control's parent object, if it has one. If there is no parent, this is Nil.}}
{{Property | name=Top | readonly=yes | description=(Double)The currently displayed screen.}}
+
{{Property | name=Top | readonly=yes | description=(Double)The top position of the control.}}
{{Property | name=Visible | description=(Boolean)The currently displayed screen.}}
+
{{Property | name=Visible | description=(Boolean)Indicates whether the control is visible.}}
{{Property | name=Width | readonly=yes | description=(Double)The currently displayed screen.}}
+
{{Property | name=Width | readonly=yes | description=(Double)The width of the control.}}
 
</dynamicTable>
 
</dynamicTable>
  

Revision as of 19:32, 31 January 2019

Class (inherits from Object)

Control is the base class for most iOS UI controls. You cannot instantiate iOSControl directly.

Events
Close Open
Properties
AccessibilityHint Left fa-lock-32.png Top fa-lock-32.png
AccessibilityLabel Name fa-lock-32.png Visible
Height fa-lock-32.png Parent fa-lock-32.png Width fa-lock-32.png
Methods
AddConstraint ControlCount RemoveConstraint
AddControl Handle RemoveControl
Control Invalidate SetTintColor

See Also

iOSScreen, iOSSplitView, iOSTabBar