finish chapter 1
This commit is contained in:
@ -44,7 +44,7 @@
|
||||
|
||||
|
||||
|
||||
<div class="book" data-level="1.2" data-basepath="." data-revision="1401778152409">
|
||||
<div class="book" data-level="1.2" data-basepath="." data-revision="1401778634648">
|
||||
<div class="book-header">
|
||||
<!-- Actions Left -->
|
||||
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
|
||||
@ -187,9 +187,16 @@
|
||||
|
||||
<div class="page-inner">
|
||||
|
||||
<section class="normal" id="section-gitbook_215">
|
||||
<section class="normal" id="section-gitbook_631">
|
||||
|
||||
<h1 id="swift-">Swift初见</h1>
|
||||
<p>通常来说,编程语言教程中的第一个程序应该在屏幕上打印“Hello, world”。在Swift中,可以用一行代码实现:</p>
|
||||
<pre><code>println("hello, world")
|
||||
</code></pre><p>如果你写过C或者Objective-C代码,那你应该很熟悉这种形式——在Swift中,这行代码就是一个完整的程序。你不需要为了输入输出或者字符串处理导入一个单独的库。全局作用域中的代码会被自动当做程序的入口点,所以你也不需要<code>main</code>函数。你同样不需要在每个语句结尾写上分号。</p>
|
||||
<p>这个教程会通过一系列编程例子来让你对Swift有初步了解,如果你有什么不理解的地方也不用担心——任何本章介绍的内容都会在后面的章节中详细讲解。</p>
|
||||
<blockquote>
|
||||
<p>注意:为了获得最好的体验,在Xcode当中使用代码预览功能。代码预览功能可以让你编辑代码并实时看到运行结果。</p>
|
||||
</blockquote>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
|
||||
|
||||
<div class="book" data-level="0" data-basepath="." data-revision="1401778152409">
|
||||
<div class="book" data-level="0" data-basepath="." data-revision="1401778634648">
|
||||
<div class="book-header">
|
||||
<!-- Actions Left -->
|
||||
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
|
||||
@ -187,7 +187,7 @@
|
||||
|
||||
<div class="page-inner">
|
||||
|
||||
<section class="normal" id="section-gitbook_214">
|
||||
<section class="normal" id="section-gitbook_630">
|
||||
|
||||
<h1 id="swift-">Swift编程语言</h1>
|
||||
<p>Swift是苹果在WWDC2014上发布的一款全新的编程语言,本书译自苹果官方的Swift教程《The Swift Programming Language》。</p>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
CACHE MANIFEST
|
||||
# Revision 1401778152411
|
||||
# Revision 1401778634649
|
||||
|
||||
CACHE:
|
||||
index.html
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -46,7 +46,7 @@
|
||||
|
||||
|
||||
|
||||
<div class="book" data-level="1" data-basepath=".." data-revision="1401778152409">
|
||||
<div class="book" data-level="1" data-basepath=".." data-revision="1401778634648">
|
||||
<div class="book-header">
|
||||
<!-- Actions Left -->
|
||||
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
|
||||
@ -189,7 +189,7 @@
|
||||
|
||||
<div class="page-inner">
|
||||
|
||||
<section class="normal" id="section-gitbook_216">
|
||||
<section class="normal" id="section-gitbook_632">
|
||||
|
||||
<h1 id="-swift">欢迎使用Swift</h1>
|
||||
<p>在本章中您将了解Swift的特性和开发历史,并对Swift有一个初步的了解。</p>
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
|
||||
|
||||
|
||||
<div class="book" data-level="1.1" data-basepath=".." data-revision="1401778152409">
|
||||
<div class="book" data-level="1.1" data-basepath=".." data-revision="1401778634648">
|
||||
<div class="book-header">
|
||||
<!-- Actions Left -->
|
||||
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
|
||||
@ -189,7 +189,7 @@
|
||||
|
||||
<div class="page-inner">
|
||||
|
||||
<section class="normal" id="section-gitbook_217">
|
||||
<section class="normal" id="section-gitbook_633">
|
||||
|
||||
<h1 id="-swift">关于Swift</h1>
|
||||
<p>Swift是一种新的编程语言,用于编写iOS和OS X应用程序。Swift结合了C和Objective-C的优点并且不受C的兼容性的限制。Swift使用安全的编程模式并添加了很多新特性,这将使编程更简单,扩展性更强,也更有趣。除此之外,Swift还支持人见人爱的Cocoa和Cocoa Touch框架。拥有了这些特性,Swift将重新定义软件开发。</p>
|
||||
|
||||
Reference in New Issue
Block a user