I'm trying to follow this advice:
Originally Posted by sirinsidiator
Of course you need to set your anchors as required. ... [Y]ou can listen to a scene's "StateChange" callback:
Lua Code:
GUILD_HOME_SCENE:RegisterCallback("StateChange", function(oldState, newState) myControl:ClearAnchors() if(GUILD_HOME_SCENE:IsShowing()) then myControl:SetAnchor(...) -- configuration a end end)
|
My difficulty is that calling myControl:ClearAnchors() results in the message *function expected instead of nil* and d() confirms that myControl.ClearAnchors is in fact nil (but myControl is not). Any suggestions about what I am doing wrong?