Comments (4)
这个int32的作用实际上就是栈,入栈+1,出栈-1
from uisystem.
不是已经有一个栈的结构了吗,为什么还要单独弄一个topViewNum来记录栈的行为
from uisystem.
那个栈用来管理的是这一层所有界面,里面包含弹窗界面和全屏界面,这里的topViewNum表示的是当前界面上面还有多少全屏界面,有一些区别,不过只用那个栈也是能可以处理的,不能确保关闭界面的一定是栈顶界面,如果目前界面有A,B,C,D,当关闭的为B时,需要先判断当前显示的全屏界面是不是B,是的话从栈顶A往下刷新显示,直到遇见新的全屏界面为止,都可以把,只是栈里面这样操作会麻烦点,然后我就重新加了个新字段,这样只要关闭或打开就循环所有层级比它低的设置一下状态,这样看起来直观点把。
from uisystem.
感谢大佬解答疑惑
from uisystem.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uisystem.