Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

如何处理[context display]时可能出现Loading进度条的情况? #36

Open
SamDivine opened this issue Dec 16, 2018 · 2 comments

Comments

@SamDivine
Copy link

(感觉和 #34 碰见的情况挺像的)
我想获得 Time Profiler 模板中 Samples 那一个 context 中的数据,这一个 context 的数据获取方式理论上和 FPS 的获取方式是一样的,但是通常情况下数据点远多于 FPS,在 Instruments 中直接切换会出现一个 Loading 进度条然后才会载入完数据。

通过调试发现,这种情况下 [context display] 之后 context.container 中实际接管流程的是 XRModalViewController *_modalController 而不是 XRAnalysisCoreTableViewController *_tabularViewController,因此没法直接使用 _tabularViewController 直接获取数据。

不知在这种情况下应当用什么方法来正确地让 _tabularViewController 接管流程并获取数据呢?

@Qusic
Copy link
Owner

Qusic commented Dec 20, 2018

我猜应该不行,是_modalController的话那就试试从_modalController里拿数据吧

@SamDivine
Copy link
Author

从class-dump出来的东西来看,XRModalViewController里面没看出来啥能直接获取数据的方法,这个controller应该只是作为loading界面过渡的,毕竟是个modal……
感觉上是 [context display] 过程中的某个地方根据数据量作了区分来决定是否需要这个 modal 来过渡,也许得从其他地方想想办法

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants