Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个应用程序。在主屏幕(视图 A)中 - 它从网络中获取数据并存储在本地数据库中。
我在另一个视图(视图 B)中显示已存储在本地的数据。
如果在 ViewA 中仍然发生将数据加载到本地的操作时用户移动到 ViewB,则它不会显示任何内容。所以我想给出一些进度条,直到操作完成。我怎么知道操作已经完成?我应该使用通知观察者还是有其他更好的方法?
如果用户在所有数据加载到本地后移动到 ViewB,则完全没有问题。