xcode中.strings文件中的pragma标记替换是什么? [英] What is the pragma mark substitute in .strings file in xcode?
本文介绍了xcode中.strings文件中的pragma标记替换是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
#pragma mark -
适用于.h文件。在.strings文件中使用什么来实现相同的目的?
#pragma mark -
works with .h files. What to use in a .strings file to achieve the same?
推荐答案
.strings
文件基本上是一个特殊的plist文件格式。也就是说,它不是编译器的输入文件。这也意味着,plist中不允许 #pragma
。
A .strings
file is basically a plist file with a special format. That is, it's NOT an input file for the compiler. That also means, a #pragma
isn't allowed in a plist.
AFAIK,plist只允许C-超出核心语法的风格评论。您可以使用 -lint
选项使用 plutil
工具检查plist文件的有效语法。
AFAIK, plist only allows C-style comments beyond the core grammar. You can check a plist file for valid syntax with the plutil
tool using the -lint
option.
这篇关于xcode中.strings文件中的pragma标记替换是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文