摘要:
Swift中,直接在类的外面调用类内部的方法,会出现Bug:Expressions are not allowed at the top level。原因是: 在App工程里, .swift 文件都是编译成模块的,不能有top level code。 先明确一个概念,一个 .swift 文件执行... 阅读全文
posted @ 2015-04-30 17:04
疯狂小柠檬
阅读(6218)
评论(0)
推荐(0)
浙公网安备 33010602011771号