码迷,mamicode.com
首页 >  
搜索关键字:playground    ( 265个结果
Star
Description Overpower often go to the playground with classmates. They play and chat on the playground. One day, there are a lot of stars in the sky. Suddenly, one of Overpower’s classmates ask him: ...
分类:其他好文   时间:2014-12-16 21:03:50    阅读次数:234
hello swift
WWDC2014也过去那么久了,swift也趋于成熟,是时候初试swift了,当然,还是从hello swift开始. 首先,你要使用xcode6.0以上版本. 同往常一样,新建一个工程,我们发现比起以前,欢迎界面多出一个Get started with a playground选项,这个神...
分类:编程语言   时间:2014-12-15 00:03:15    阅读次数:265
Jump Flood Algorithms for Centroid Voronoi Tessellation
BriefImplemented both CPU and GPU version, you could consider this as the basic playground to implement the more advanced feature such as support arbi...
分类:其他好文   时间:2014-12-02 22:15:28    阅读次数:232
Swift-5-流程控制
// Playground - noun: a place where people can playimport UIKit// For-In 循环// 1 遍历数字区间for index in 1...5 { println("\(index) times 5 is \(index)")}...
分类:编程语言   时间:2014-11-23 18:57:25    阅读次数:195
Swift-7-闭包
// Playground - noun: a place where people can playimport UIKit// swift 中闭包与C和OC中的blocks比较相似// 1. 利用上下文推断参数和返回值类型 2. 单表达式闭包可以省略return关键字 3. 参数名称简写 4. ...
分类:编程语言   时间:2014-11-23 18:57:07    阅读次数:162
Swift-9-类和结构体
// Playground - noun: a place where people can playimport UIKit// 几个重要的概念Properties/Methods/Subscripts/Initialization/Extensions/Protocols/Inheritance...
分类:编程语言   时间:2014-11-23 18:56:31    阅读次数:242
Swift-2-基本操作符
// Playground - noun: a place where people can playimport UIKit// 基本运算符// 运算符有3种: 单目运算符(如 -a),二目运算符(如a+b)和三目运算符(a ? b : c)let (x, y) = (20, 30) // 分解元...
分类:编程语言   时间:2014-11-23 18:54:52    阅读次数:220
Swift-3-字符串和字符
// Playground - noun: a place where people can playimport UIKitvar someString = "some string literal value"someString += "another"// 初始化空字符串 2种方式,得出的结...
分类:编程语言   时间:2014-11-23 18:54:24    阅读次数:191
Swift-6-函数
// Playground - noun: a place where people can playimport UIKit// 定义和调用函数func sayHello(personName : String) -> String { let greeting = "hello, " + ...
分类:编程语言   时间:2014-11-23 18:53:31    阅读次数:262
Swift-1-基本概念
// Playground - noun: a place where people can play// 通过代码快速了解swift常用知识,需要一定object-c基础import UIKit// 声明常量let maximumNumberOfAttemps = 10// 声明变量var cur...
分类:编程语言   时间:2014-11-23 18:53:09    阅读次数:214
265条   上一页 1 ... 21 22 23 24 25 ... 27 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!