iOSLibTextField - UBogun/Xojo-iosLib GitHub Wiki
Native class: AppleTextField
Inherits from: iOSLibCanvas
iOSLibTextField is the custom control of iOSLib containing an AppleTextField as object, which means it is a replacement for Xojo’s TextField. In most cases you will be find using iOSTextField and the iOSTextField extension module. The custom control inherits all the textfield events and is therefore suitable as a base for your own custom TextFields.
Like all iOSLib custom controls, the control is a wrapper that contains the view and performs translations between Xojo and iOS classes / data types transparently whereever possible.
Like all iOSLib custom controls, if you want to attain maximum performance, you can always address the iOSClass itself via the Controls ID object. The ID object is always the View subclass itself, in this case AppleTextField. The iOS class expects Apple native objects and data types of course. You can always use the included translation methods to bridge from Xojo types and classes to iOS.
General information
Inspector Properties
Inspector behavior properties of iOSLibTextField.
Features
Please refer to AppleTextField. This class merely translates most of the properties and methods to Xojo classes; documentation will follow.
A special note on
aFontType which features System, SystemSmall and Custom as Options.
The silly name because Xojo’s Inspector behavior seems to sort alphabetically. The FontSize and FontName properties are syntactic sugar; they create an AppleFont from name and size.
FontName and FontSize in iOSLibTextField are only respected if aFontType is set to Custom. If it is set to System or SystemSmall, FontSize and FontName are disregarded.
In order to keep that working, aFontType has to be instantiated before FontName and FontSize – that’s why there is an "a" at the beginning of the name.
Sadly I cannot access the font list built-in classes like iOSTextField offer, so I tried to build a somewhat solution around that.