简体   繁体   English

应用程序代表之间的差异

[英]Difference Between Application Delegates

What is the difference between: 之间有什么区别?

[[UIApplication sharedApplication] delegate]

and

UIApplicationDelegate

UIApplicationDelegate is a protocol definition, which means it's a set of methods an object that conforms to it should implement. UIApplicationDelegate是一个协议定义,这意味着它是对象应遵循的一组方法。

[[UIApplication sharedApplication] delegate] is the way you have to ask for application delegate of your currently running application. [[UIApplication sharedApplication] delegate]是您要求当前运行的应用程序的应用程序委托的方式。 That delegate should conform to UIApplicationDelegate . 该委托应符合UIApplicationDelegate

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM