Xcode 6.2 beta 3, including iOS 8.2 SDK with WatchKitWhat’s new in Xcode 6.Xcode 6 introduces a radically new way to design and build software. Swift ...
分类:
其他好文 时间:
2015-01-05 16:18:05
阅读次数:
186
集合类型 Collection Types swift提供了数组(Array)和字典(Dictionary)两种集合类型。数组用来存储相同类型的有序的值(Values);字典用来存储相同类型的无序的值(Values),这些值有一个唯一的键(Key)标识它们。1. 数组 Array Swift...
分类:
其他好文 时间:
2015-01-04 12:02:22
阅读次数:
196
接触swift有段时间,搞定通讯、数据库基本上已经够普通开发使用。coredata一直是官方推荐使用的数据存储方式,以下即为普通数据存储方式及代码1.首先要勾选工程中使用coredata数据存储方式,系统会自动生成所需相关代码2.创建实体(Entity)、属性(Attributes)并选择属性的数据...
分类:
编程语言 时间:
2015-01-04 11:11:16
阅读次数:
256
let Constant var Variable
let implicitInteger = 70
let implicitDouble = 70.0
let explicitDouble: Double = 70 The so-called type implications To includ...
分类:
编程语言 时间:
2015-01-03 22:15:18
阅读次数:
149
根据类名来实例化对象,比如,要根据一个类名的字符串创建ViewController实例。let controllerName="SpainAppProto."+xibName // xibName 形如 XXViewControllervar classType: AnyObject.Type=N....
分类:
编程语言 时间:
2015-01-02 17:28:44
阅读次数:
244
1 // Playground - noun: a place where people can play 2 3 import UIKit 4 //---------------------------------------------------------------------...
分类:
编程语言 时间:
2015-01-01 12:29:09
阅读次数:
148
本篇文章学习了Hadoop的FileSystem及其子类,详细介绍了get和newInstance的区别并介绍了若干API方法,最后给出了一个简单的实例...
分类:
其他好文 时间:
2014-12-30 15:24:24
阅读次数:
186
// Playground - noun: a place where people can playimport UIKit/***********************************************************//*** 一. A Swift Tour*///1....
分类:
编程语言 时间:
2014-12-30 00:25:32
阅读次数:
231