可以理解,Activity与iOS中的ViewController类似吗? [英] Is this OK to understand that Activity is similar to ViewController in iOS?

查看:141
本文介绍了可以理解,Activity与iOS中的ViewController类似吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以理解Activity与iOS中的ViewController相似吗?

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

我很难接受Android中的术语概念,如Activity,Service等。 。

I am confused to accept a concept of terms in Android as Activity, Service etc...

推荐答案

是的,我会说Activity和ViewController非常相似。只有一个巨大的区别。在iOS中,您有一个委托来控制应用程序的状态,就像新的ViewController已启动或应用程序已完成一样。在Android中,您可以通过onCreate(),onPause()等单独为每个活动执行此操作。

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.

这篇关于可以理解,Activity与iOS中的ViewController类似吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆