2015-02-06 28 views

回答

2

Xcode插入導入,因爲這是它在「新文件模板」中的定義。與其更改這些內置模板,您應該克隆它們並製作自己的調整導入語句。

看看這個答案怎麼做:https://stackoverflow.com/a/33743/396578

+0

導入的模板定義有點複雜。你能不能解釋模板應該如何改變? – Sulthan 2015-02-06 16:39:25

+0

在上面的問題中,我複製了objective-c文件模板('cp -R Objective-C \ File.xctemplate destination /'),並將'Empty File/___ FILEBASENAME ___。m'中的#import行更改爲@import。 – Cornelius 2015-02-06 19:13:27

相關問題