开发者

Is this OK to understand that Activity is similar to ViewController in iOS?

开发者 https://www.devze.com 2023-03-29 05:05 出处:网络
Is this OK to understand that Activity is similar to ViewController in iOS? I am confused to accept a concept of terms in Android as Activity, Servic开发者_Python百科e etc...Yes, I would say that Act

Is this OK to understand that Activity is similar to ViewController in iOS?

I am confused to accept a concept of terms in Android as Activity, Servic开发者_Python百科e etc...


Yes, I would say that Activity and ViewController are rather similar. There is just one BIG difference. In iOS you have a delegate to control your application's state, like a new ViewController has started or the application is finished. In Android you do this separately for each activity via onCreate(), onPause(), etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消