As the title said, textfield doesn’t disappear automatically after composer.gotoScene(“test”). I tried using composer.removeScene to remove current scene before going to another scene but it still the same.
Thanks for incoming advice
As the title said, textfield doesn’t disappear automatically after composer.gotoScene(“test”). I tried using composer.removeScene to remove current scene before going to another scene but it still the same.
Thanks for incoming advice
You have to remove native objects manually, Composer won’t do this for you.
[lua]
display.remove(myTextField)
myTextField = nil
[/lua]
Thank you for your advice
Note : All native objects must be removed ‘manually’.
Also the ‘spinner widget’ ( http://docs.coronalabs.com/api/library/widget/newSpinner.html ) needs to be removed manually.
Hi @yosu,
The spinner widget ( not to be confused with the native activity indicator) shouldn’t require manual removal. Do you have a block of code which shows otherwise? If so, it may be a bug… after all, the spinner widget is just a basic display object/group, so it can be added to a Composer scene just like anything else.
Brent
You have to remove native objects manually, Composer won’t do this for you.
[lua]
display.remove(myTextField)
myTextField = nil
[/lua]
Thank you for your advice
Note : All native objects must be removed ‘manually’.
Also the ‘spinner widget’ ( http://docs.coronalabs.com/api/library/widget/newSpinner.html ) needs to be removed manually.
Hi @yosu,
The spinner widget ( not to be confused with the native activity indicator) shouldn’t require manual removal. Do you have a block of code which shows otherwise? If so, it may be a bug… after all, the spinner widget is just a basic display object/group, so it can be added to a Composer scene just like anything else.
Brent