且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将版权信息添加到Nib文件?

更新时间:2023-11-29 22:41:22

我认为你无法在 xib $ c $上做些什么c>级别,因为即使是IB检查员也没有任何可以为此编辑的相关字段。一种解决方案可能是在 xib 中添加 NSObject (在根级别),将其命名为版权(或其他)并在 Notes 字段(身份检查员)字段中添加您的信息。

I don't think that there is something you can do on xib level since even the IB inspector doesn't have any associated fields that you can edit for this. One solution though could be to add an NSObject in your xib (at root level), name it Copyright (or whatever) and add your information on the Notes field (identity inspector).

现在,如果您不想在 xib 中添加新对象来保存此信息,您只需将版权声明添加到文件所有者备注字段。无论哪种方式,信息都将包含在xml中。

Now if don't want to add a new object in your xib just to hold this information, you could just add your copyright notice into the File's Owner notes field. Either way, the information will be included in the xml.

我知道这有点像黑客,但这只是一个想法。如果有人能想到更合适的方法来实现这一点,我也很高兴知道。

I know it's a bit of a hack but it's just an idea. If anyone though can think of a more proper way for achieving this I would be glad to know as well.