iOS Question SFSafariController TintColor not working properly

CrunkFX

Member
Licensed User
As @Erel said here UI9 TintColor was fixed, but after the fix the Buttons are colored the same as the SafariBackground:



B4X:
Private Sub InitSafariView
    Page1.Initialize("Page1")
    Page1.Title = "Page 1"
    Page1.RootPanel.Color = Colors.White
    Main.NavControl.ShowPage(Page1)
    Dim bb As BarButton
    bb.InitializeText("Open", "Open")
    Page1.TopRightButtons = Array(bb)
End Sub

Private Sub Button1_Click

    Safari.Initialize("safari", "https://www.b4x.com")
    Safari.TintColor = Colors.Blue
    Safari.Show(Page1)

End Sub
This also happens to all other colors, not just blue.
Is there a way to set the Text color or just setting the text color without setting the bg color?
 

CrunkFX

Member
Licensed User
Have you set the ControlsTintColor property?
OK, my Bad, i wasn´t aware there now is another parameter called ControlsTintColor. Whilst using it i get the following error from the Hosted Builder
B4X:
no visible @interface for 'B4ISFSafariViewController' declares the selector 'setControlsTintColor:'

Maybe i placed the .h File of iUI9 wrong? Where does it have to go? Also in the lib folder of b4i?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…