加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-14 17:25:02 所属栏目:百科 来源:网络整理
导读:身份检查器中的模块字段用于什么?在 Xcode中,当您切换到身份检查器时,类名下面有一个字段.我理解类字段用于选择类但不太清楚模块字段的用途.你可以看到下面的截图 解决方法 这取自 2014 WWDC discussion Now,you may notice there’s a new module field he
身份检查器中的模块字段用于什么?在 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读