I have no idea if this fails in previous XOJO versions using the new compiler. I am just revisiting an iOS app I built using XOJO 2019. Inside that I used the iOSKit-master for XOJO 2020r2. At this time I am just scratching the surface of the provided iOS extensions. This one SetBackgroundColorXC in particular is used in several places and fails here dim myViewPtr As Ptr = decl_GetView(v.Handle)
This is how I call that Method
Here is the code contained inside that Method inside ViewExtensionsXC
Dim uic As UIKit.UIColor if c.Alpha = 255 then uic = UIKit.UIColor.ClearColor else uic = new UIKit.UIColor(c) end if ' UIKit Declare to get a reference to a View from its ViewController Declare Function decl_GetView lib "UIKit.framework" selector "view" (aUIViewController As Ptr) As Ptr ' Here is the corresponding Xojo call (View.Self returns a ViewController) dim myViewPtr As Ptr = decl_GetView(v.Handle) ' UIKit Declare to set the backgound color of a View Declare Sub decl_SetBackgroundColor lib "UIKit.framework" selector "setBackgroundColor:" (aUIView As Ptr, aUIColor As Ptr) ' Here is the corresponding Xojo call decl_SetBackgroundColor(myViewPtr, uic)
Not certain what needs to be changed to that line of code or what else may need to be changed.