ios – 身份检查器中的模块字段用于什么?

前端之家收集整理的这篇文章主要介绍了ios – 身份检查器中的模块字段用于什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
身份检查器中的模块字段用于什么?在 Xcode中,当您切换到身份检查器时,类名下面有一个字段.我理解类字段用于选择类但不太清楚模块字段的用途.你可以看到下面的截图

image of Xcode's identity inspector

解决方法

这取自 2014 WWDC discussion

Now,you may notice there’s a new module field here.

Another great way that Swift improves the coding experience is by
associating classes with the modules that they are declared in.

That allows you to use short,comfortable class names while still ensuring that your classes won’t collide across targets and projects.

猜你在找的Xcode相关文章