i am loading data from server and then in the next scene i am displaying that data in a list. But when i upload some new data in that case i need to restart my app from main.lua to show the new posts to users. I just have tried the following code:

storyboard.gotoScene("main","fromRight");
有帮助吗?

解决方案

You can reload/restart your scene using this:

storyboard.reloadScene()

This Link can probably help you.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top