自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

原创 Chapter 4: Strings

*Unicode. It defines the character set mapping that almost all computers use today.The number associated with each character is called a code point.*The Character data type can store a single

2016-09-22 19:07:56 222

原创 Chapter 3: Numeric Types & Operations

*In Swift, you can even use the modulo operator with fractional numbers, like so:let moduloDecimal = 11.6 %1.2*In Swift, you can't apply the * operator to mixed types. This rules applies

2016-09-22 17:33:53 220

原创 Architecture

Introduction to MVVM*MVVM is compatible with your existing MVC architecture.MVVM makes your apps more testable.MVVM works best with a binding mechanism.*Most developers agree that global m

2016-03-19 16:48:05 359

原创 Lighter View Controllers

Light View Controllers*Separate Out Data Source and Other Protocol*The nice thing is that we can test this class separately, and never have to worry about writing it again. The same principle

2016-03-17 16:28:23 246

原创 MVVM Tutorial with ReactiveCocoa

Part One*MVC separates the UI into the Model that represents the application state, the View, which in turn is composed of UI controls, and a Controller that handles user interactions and updates th

2016-03-16 15:17:55 501

原创 ReactiveCocoa Tutorial – The Definitive Introduction

*ReactiveCocoa combines a couple of programming styles:Functional Programming which makes use of higher order functions, i.e. functions which take other functions as their arguments.Reactive Progr

2016-03-14 19:32:53 290

原创 Swift Functional Programming Tutorial

*Functional programming is a programming paradigm that emphasizes calculations via mathematical-style functions, immutability and expressiveness, and minimizes the use of variables and state.Since t

2016-01-03 17:52:20 265

原创 Collection Data Structures In Swift

*An NSArray is heterogeneous, meaning that it can contain Cocoa objects of different types. Swift arrays are homogeneous, meaning that each Swift Array is guaranteed to contain only one type of object

2016-01-02 17:37:16 500

原创 Operator Overloading in Swift Tutorial

*Typically, you'll use overloading to extend an operation to a new object while maintaining the original semantics, rather than defining different (and confusing) behavior.*There are three steps

2016-01-02 11:38:21 250

原创 Custom Subscripting in Swift Tutorial

*subscript(coordinates: (Int,Int)) -> PlayerColor { get {  } set {  }}sdfsdfsdfsdfsdfsfsdfsdf

2015-12-29 19:04:01 269

原创 Swift Generics Tutorial

*Swift has typed arrays and dictionaries. An array of Ints can only hold Ints and can never (for example) contain a String. This means you can document code by writing code, allowing the compiler to d

2015-12-28 15:31:03 246

原创 Introducing Protocol-Oriented Programming in Swift 2

*Becuase types can conform to more than one protocol, they can be decorated with default behaviors from multiple protocols. Unlike multiple inheritance of classes which some programming languages supp

2015-12-25 16:18:47 287

原创 Introduction to Functional Programming in Swift

*Imperative thinking is thinking in terms of algorithms or steps when solving a problem, or the how of getting from A (the problem) to B (the solution). A perfect example of an imperative approach is

2015-12-25 11:52:19 264

原创 Swift Tutorial: Introducing Structures

*struct Location { let latitude: Double let longitude: Double}let pizzaLocation = Location(latitude: 44.9871, longitude: -93.2758)The basic syntax begins with the struct

2015-12-23 15:35:25 291

原创 Chapter 2: Variables and Constants

*In Swift, you can optionally use underscored to make larger numbers more human-readable. The quantity and placement of the underscores is up to you.*Swift is very strict about the types it uses

2015-12-23 12:24:12 305

原创 Swift Tutorial: Repeating Steps with Loops

*Close range: let closedRange = 0...5Half-open range: let halfOpenRange = 0..*let count = 10 var sum = 0for var i = 1; i = count; i++ { sum += i}let count

2015-12-21 20:13:22 322

原创 Swift 2 Tutorial

*Declaring things with let whenever possible is best practice, because that will allow the compiler to perform optimizations that it wouldn't be able to do otherwise.*We believe it's better prac

2015-12-12 17:37:09 222

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除