- 博客(367)
- 收藏
- 关注
原创 Manage your team in iOS/OS X enterprise development:
Manage your team in iOS/OS X enterprise development:Link: WWDC2014: 705_hd_distributing_enterprise_apps.movSummary:Enroll in iOS Developer Enterprise Program;Agent and Admins sho
2014-08-12 15:23:42 504
原创 Passing address of non-local object to __autoreleasing parameter for write-back
Returning a Result as the Argument在希望通过函数的参数返回Objective-C 对象
2014-07-28 11:46:11 2742
原创 ARC between Foundation and Core Foundation
A bridged cast is a C-style cast annotated with one of three keywords:(__bridge T) op casts the operand to the destination type T. If T is a retainable object pointer type, then op must have a n
2014-07-25 10:53:52 521
原创 Domain Name System (DNS)
IPv4 addresses are hard to remember, and IPv6 addresses are quadruply hard (because they are four times as long). To make it easier to describe a particular host, the domain name system (DNS) was inve
2014-07-22 11:57:12 608
原创 Networking Layers
The TCP/IP networking model consists of four basic layers: the link layer, theIP layer (short for Internet protocol), the transport layer, and the application layer.
2014-07-22 09:36:59 538
原创 Networking Terminology
In networking terminology, a host is any device that is connected to a network and provides an endpoint for networked communication. A host might be a desktop computer, a server, an iOS device, a vi
2014-07-22 08:59:29 510
原创 运行(Command Line Tool)Terminal App,并且返回输出结果
- (NSString *)runCommand:(NSString *)commandToRun{ NSTask *task; task = [[NSTask alloc] init]; [task setLaunchPath: @"/bin/sh"]; NSArray *arguments = [NSArray arrayWithObjects:
2014-07-16 13:13:14 1855
转载 iOS的 static library (.a)/ Framework Tutorial
http://www.raywenderlich.com/65964/create-a-framework-for-ios
2014-07-14 16:18:25 511
转载 dynamic-table-view-cell-height-auto-layout
http://www.raywenderlich.com/73602/dynamic-table-view-cell-height-auto-layout
2014-07-03 22:30:48 611
原创 Mac OS X 获取Root权限代码
OSStatus myStatus; AuthorizationFlags myFlags = kAuthorizationFlagDefaults; AuthorizationRef myAuthorizationRef; myStatus = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, myFlags, &myAut
2014-07-01 13:27:57 2067
原创 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 596
原创 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 619
原创 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 626
原创 Swift 易忽略的笔记 6):Methods & Subscripts
1。 Methods分为instance method 和 type methods
2014-06-23 18:34:45 595
原创 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
原创 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
转载 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 732
转载 Cocoa2d-x 3.0 Release 版本 配置Mac
http://www.cocoachina.com/bbs/read.php?tid=199238
2014-05-20 18:23:28 485
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人