iOS Question Only change border color

JanPRO

Well-Known Member
Licensed User
Yeaahh, I know this method.
But I want to give users the option to change the whole app design, also the border colors. And for that I use the following loop:

B4X:
  For Each v As View In Page_Main.RootPanel.GetAllViewsRecursive
   .
   .
   .

   If v Is Panel Then
   Dim pn As Panel = v
   'Now I only want to change the color, and because I don't know the color witdh and the corner radius, I can't use SetBorder
   End If

  Next
Edit:

When I use this:

B4X:
no.GetField("layer").RunMethod("setBorderColor:",no.ColorToUIColor(Array(Colors.Magenta)))
I get the following error: Unsupported type ^{CGColor=}
 
Last edited:
Top