首页 > 编程语言 > 详细

Swift - 初次使用:

时间:2015-12-21 19:50:00      阅读:208      评论:0      收藏:0      [点我收藏+]

今天Apple放出了新的编程语言。然后下载了Xcode6把系统升级到Mac OS 10.9.3 (Xcode6的系统最低要求)。

创建了一个项目,折腾半天 都不知道怎么导入一个ViewController文件。后来细致看了一下官方文档。在 A Swift Tour 这一章 有一段话:

“ You don’t need to import a separate library for functionality like input/output or string handling.
 Code written at global scope is used as the entry point for the program, so you don’t need a main function.
 You also don’t need to write semicolons at the end of every statement.”

摘录来自: Apple Inc. “The Swift Programming Language”。 iBooks. https://itun.es/cn/jEUH0.l


大意是以后不须要导入头文件.. 


大家多注意一下吧...细致看文档吧...

技术分享



Swift - 初次使用:

原文:http://www.cnblogs.com/hrhguanli/p/5064155.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!