DerkJ
(DerkJ)
February 19, 2022, 12:19pm
1
Can anyone give me a hint why the compiler keeps saying the signature expected is (hover over AddControl in IDE):
MobileScreen.AddControl(child As iOSControl)
and the docs say:
MobileScreen.AddControl(child As MobileControl)
Looks like the last is expected since i’m adding a MobileControl (param c As MobileControl)
https://documentation.xojo.com/api/user_interface/mobile/mobilescreen.html#mobilescreen-addcontrol
Compiler error message:
Xtend_MobileScreen.AddControlFullSize, line 3
There is more than one method with this name but this does not match any of the available signatures.
v.AddControl(c)
DerkJ
(DerkJ)
February 19, 2022, 12:23pm
2
Ok the docs say expecting a MobileControl but changing the c param in my method to MobileUIControl fixes the error.
Perhaps a doc error ?
https://documentation.xojo.com/api/user_interface/mobile/mobilescreen.html#mobilescreen-addcontrol
Should be:
MobileScreen.AddControl(child As MobileUIControl)
?
Jeremie_L
(Jeremie_L)
February 19, 2022, 2:23pm
3
Thanks Derk, I updated the documentation.
Now let’s hope the changes are also applied to the new docs.
1 Like
DerkJ
(DerkJ)
February 19, 2022, 2:26pm
4
Also the IDE hover over (info at bottom of editor) needs to be fixed.