Description: IOS native Edit Transparent box
Method:
Effect:
Description: IOS native Edit Set box color
Applicable: Berlin Firemonkey
Code Modification Description:
- Please make the source FMX. Edit.iOS.pas Copy to your project directory and make changes.
- Code inside {+++> represents my added code
- Code {---> deleted code on behalf of me
- Future version of Delphi can own {+++> {---> ported to the new version of the code
ConstructorTiosnativeedit.Create;begin inherited; Ftextfielddelegate:= Tiostextfielddelegate.Create(self); View.setexclusivetouch (True); View.setborderstyle (uitextborderstyleroundedrect);{+++>} //by AoneView.layer.setBorderColor (Tuicolor.wrap (TUIColor.OCClass.whiteColor). Cgcolor); White View.layer.setCornerRadius (0); View.layer.setBorderWidth (2);{<+++}view.setdelegate ((ftextfielddelegate asilocalobject). Getobjectid); Fpreviousselection:=Nsmakerange (Nsnotfound, Nsnotfound); Registernativeeventhandler ('controleventeditingchanged', uicontroleventeditingchanged); Registernativeeventhandler ('Controleventeditingdidend', uicontroleventeditingdidend);End;
Effect:
Adjustment Firemonkey IOS native Edit change box color or transparent box