自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Swift: Memory Management -> Weak, Unowned, Strong

Weak 和Objective-C的很像 (auto niled)Weak

2014-06-29 23:22:25 1136

原创 Swift:Optional KeyNote

OptionalsUse optionals to safely working with possibly missing values

2014-06-29 20:46:51 463

原创 Swift 调用 Objective-C代码 1)

1. InitializationFor example, where in Objective-C you would do this:SWIFTlet myTableView: UITableView = UITableView(frame: CGRectZero, style: .Grouped)”

2014-06-25 11:04:55 1097

原创 swift 易忽略的笔记 12): Miscellaneous

1. Curried Functions and MethodsCurried functions and methods have the following form: func function name(parameters)(parameters) -> return type { statements}A function declared this

2014-06-24 20:35:10 524

原创 swift 易忽略的笔记 11):Operator Functions

1.  @infixstruct Vector2D { var x = 0.0, y = 0.0}@infix func + (left: Vector2D, right: Vector2D) -> Vector2D { return Vector2D(x: left.x + right.x, y: left.y + right.y)}let vector = Vec

2014-06-24 15:38:30 595

原创 swift 易忽略的笔记 10):Generic

1. Generic Functionsfunc swapTwoValues(inout a: T, inout b: T) { let temporaryA = a a = b b = temporaryA}

2014-06-24 14:27:47 618

原创 Swift 易忽略的笔记 9):Protocol

Protocols“A protocol defines a blueprint of methods, properties, and other requirements that suit a particular task or piece of functionality.”1. Property Requirements

2014-06-24 11:35:32 975

原创 Swift 易忽略的笔记 8):Extensions

1. ExtensionsExtensions add new functionality to an existing class, structure, or enumeration type. This includes the ability to extend types for which you do not have access to the original sou

2014-06-24 10:31:54 625

原创 Swift 易忽略的笔记 7):Type Casting & Nested Type

1. Type CastingChecking Type

2014-06-24 09:57:36 646

原创 Swift 易忽略的笔记 6):Methods & Subscripts

1。 Methods分为instance method 和 type methods

2014-06-23 18:34:45 594

原创 Swift 易忽略的笔记 5):Enumeration & Classes and Structs & Properties总结

1. Enumerationlet somePlanet = Planet.Earthswitch somePlanet {case .Earth: println("Mostly harmless")default: println("Not a safe place for humans")}// prints "Mostly harmless”

2014-06-23 13:20:01 1004

原创 Mac OS X进程隐藏后 关机卡住问题

实现进程隐藏后,关机的时候,有一定概率会出现卡住死机,关不了现象

2014-06-23 08:45:11 1360

原创 Swift 易忽略的笔记 4):Function & Closure

1. funcfunc join(string s1: String, toString s2: String, withJoiner joiner: String) -> String { return s1 + joiner + s2}

2014-06-23 07:50:47 645

原创 Swift 易忽略的笔记 3): Array & Dictionary

1. Arrayfor item in shoppingList { println(item)}// Six eggsfor (index, value) in enumerate(shoppingList) { println("Item \(index + 1): \(value)")}// Item 1: Six eggs// Item 2: Milk/

2014-06-22 11:29:26 474

原创 Swift 易忽略的笔记 2):String

1. String“Swift’s String type is a value type. If you create a new String value, that String value is copied when it is passed to a function or method, or when it is assigned to a constant or variab

2014-06-22 10:57:05 567

原创 Swift 易忽略的笔记 1)

1. 一条语句结尾没有分号;

2014-06-21 10:44:37 544

转载 Adding Login Items (OS X)

Adding Login Items There are two ways to add a login item: using the Service Management framework, and using a shared file listLogin items installed using the Service Management framew

2014-06-13 09:21:09 1115

转载 Logout Responsibilities (OS X)

Logout ResponsibilitiesThe procedures for logging out, restarting the system, or shutting down the system are similar. A typicallogout/restart/shutdown takes place as follows:The user selects

2014-06-13 08:55:49 577

转载 Protocols for Communicating with Daemons (OS X)

Protocols for Communicating with DaemonsThere are four major communication mechanisms commonly used between daemons and their clients: XPC,traditional client-server communications (including Apple e

2014-06-13 08:40:42 641

转载 Types of Background Processes (OS X)

There are four types of background processes in OS X. The differences are summarized inTable 1-1(page 9)and described in detail in the following subsections. To select the appropriate type of back

2014-06-12 17:28:00 477

转载 Xcode 看变量2进制内存值

在  debug 模式下如何在断点处,查看字符指针变量内存中的值,像vs2008的调试工具一样的内存查看器,现在只能查看第一个内存中的值可以在输出窗口采用gdb命令:x /nfu n表示要显示的内存单元的个数-----------------------------------------f表示显示方式, 可取如下值:x 按十六进制格式显示变量d 按十进制格式显示变量

2014-06-12 14:07:32 729

空空如也

空空如也

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

TA关注的人

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