iOS Question B4i - Corner Radius with code

ciginfo

Well-Known Member
Licensed User
Longtime User
Hello,
With B4A I can obtain labels witth round corners by code.
What is equivalent with B4i?
Thank you
B4X:
Dim gd1 As GradientDrawable
Dim gd2 As GradientDrawable
Dim cols1(2) As Int
gd1.Initialize("TOP_BOTTOM",cols1)
gd1.CornerRadius = 15
MyLabel.Background = gd1
 
Top