MobileScreen.AddControl signature wrong?

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)

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)
?

Thanks Derk, I updated the documentation.
Now let’s hope the changes are also applied to the new docs.

1 Like

Also the IDE hover over (info at bottom of editor) needs to be fixed.