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

后端 未结 1 1879
傲寒
傲寒 2021-02-01 01:58

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, Service etc...

相关标签:
1条回答
  • 2021-02-01 02:45

    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 讨论(0)
提交回复
热议问题