let image_ElectricianBtn = UIImage(named: "ElectricianBtn") let vimage_ElectricianBtn = UIImageView(image: image_ElectricianBtn) vimage_ElectricianBtn ...
分类:
编程语言 时间:
2016-05-13 11:26:28
阅读次数:
309
if let buttonBeep = self.setupAudioPlayerWithFile("ButtonTap", type: "wav") { self.buttonBeep = buttonBeep } if let secondBeep = self.setupAudioPlayer ...
分类:
其他好文 时间:
2016-05-13 07:33:00
阅读次数:
307
Problem hereProblemDrazil is playing a math game with Varda.Let’s define for positive integer x as a product of factorials of its digits. For example, First, they choose a decimal number a consisting...
分类:
其他好文 时间:
2016-05-13 03:10:26
阅读次数:
115
// 可选值
let cities_ = ["Paris": 2241, "Madrid": 3165, "Amsterdam": 827, "Berlin": 3562]
// madridPopulation 的类型是可选类型 Int?,而非 Int。一个 Int? 类型的值是 Int 或者特//殊的 “缺失” 值 nillet madridPopulation: Int? = citi...
分类:
编程语言 时间:
2016-05-13 02:23:40
阅读次数:
205
摘自 《Lisp语言- 陈光喜》
一、赋值
(1)let
Lisp中使用let来完成局部变量的定义。其形式为:(let ((var1 exp1)(var2 exp2)…(varn expn))...
分类:
其他好文 时间:
2016-05-13 02:23:27
阅读次数:
216
DescriptionWe will use the following (standard) definitions from graph theory. Let V be a nonempty and finite set, its elements being called vertices (or nodes). Let E be a subset of the Cartesian prod...
分类:
其他好文 时间:
2016-05-13 00:21:56
阅读次数:
118
Be the Winner
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2945 Accepted Submission(s): 1628Problem Description
Let’s consider m apples...
分类:
其他好文 时间:
2016-05-12 17:10:27
阅读次数:
234
Description
Let's imagine how apple tree looks inbinary computer world. You're right, it looks just like a binary tree, i.e. anybiparous branch splits up to exactly two new branches. We will enumerat...
分类:
移动开发 时间:
2016-05-12 17:01:57
阅读次数:
229
CAShapeLayer 是 CALayer 的子类,但是比 CALayer 更灵活,可以画出各种图形,当然,你也可以使用其他方式来画,随你。
杂谈
在 CAShapeLayer 中,也可以像 CALayer 一样指定它的 frame 来画,就像这样:
1
2
3
4
5
let layer = CAShapeLayer()
layer.fra...
分类:
移动开发 时间:
2016-05-12 14:26:54
阅读次数:
175
设计模式-工厂方法模式算是看书的笔记并非原创,总结:工厂方法模式定义Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses
定义一个用于...
分类:
其他好文 时间:
2016-05-12 14:07:15
阅读次数:
140