- 博客(121)
- 收藏
- 关注
原创 View Programming Guide for iOS
About Windows and Views Windows do not have any visible content themselves but provide a basic container for your application’s views. Views define a portion of a window that you want to fill with so
2014-01-16 00:40:32
826
原创 !!!Chapter 7 The Application Layer
7.1 DNS --- The Domain Name System Theoretically, programs could refer to web pages, mailboxes by using the network(IP) addresses of the computer which they are stored. Back in the ARPANET days, the
2014-01-14 04:45:44
820
原创 !!!Chapter 6 The Transport Layer
6.1 The Transport Service 传输服务类型: (1)面向连接, 三个阶段:建立连接、数据传输和释放连接 (2)无连接OSI模型划分为2大部分: (1)1-4层:传输服务提供者(Transport service provider) (2)5-7层:传输服务用户(Transport service user) The internet transport p
2014-01-14 04:08:53
555
原创 iOS App Programming Guide => Advanced Tricks
Configuring Your App to Support iPhone 5 To support the larger screen in your code properly, always retrieve the size of a screen, window, or view dynamically and use that size information to confi
2014-01-13 09:53:35
948
原创 iOS App Programming Guide => State Preserve/Restore & Resources
State Preservation and Restoration There are three places where you have to think about state preservation in your app: Your app delegate object, which manages the app’s top-level state You
2014-01-12 04:48:10
1349
原创 iOS App Programming Guide => App States
App States and Multitasking As you implement your app, follow these guidelines: (Required) Respond appropriately to the state transitions that occur. Not handling these transitions properly ca
2014-01-10 09:53:54
1258
原创 Apple Documentation List
For more information about the standard container view controllers provided by UIKit, see View Controller Catalog for iOS. For guidance on how to manipulate views in your view controller, see View
2014-01-08 04:49:39
524
原创 iOS App Programming Guide => Design Basic & Core Objects
iOS App Programming Guide
2014-01-08 04:33:51
968
原创 !!!Chapter 5 The Network Layer
网络层涉及 分组从源端-〉目的端处理端到端数据传输的最低层 数据链路层涉及 数据帧从导线的一端到另一端 5.1 Network Layer Design Issues Services the network layer provides to the transport layer: The services should be independent of th
2014-01-07 23:31:02
934
原创 Xcode Overview
Xcode Overview Write Code in the Source Editor Perform Static Code Analysis Use the static analyzer to find bugs in your code before you even run your app. The static analyzer tries out thousands
2014-01-07 03:59:48
619
原创 Xcode Concepts
Xcode Concepts Xcode Concepts Xcode Target A target specifies a product to build and contains the instructions for building the product from a set of files in a project or workspace. A target d
2014-01-05 02:36:01
554
原创 Xcode => Symbols in Symbol Navigator
http://stackoverflow.com/questions/6662395/xcode-intellisense-meaning-of-letters-in-colored-boxes-like-f-t-c-m-p-c-k-etc In Xcode this is called "Code Sense". And these icons also exist in Xcod
2014-01-04 10:51:27
1118
原创 !!!Obj-c on Mac --- Chapter 17 NSPredicate
You can create NSPredicate objects that describe exactly what you think is the truth and run each of your objects through the predicate to see if they match. Creating a Predicate One way to create p
2014-01-03 10:24:51
744
原创 !!!Obj-c on Mac --- Chapter 16 Key-Value Coding
Keyvalue coding, affectionately known as KVC to its friends, is a way of changing an object’s state indirectly, by using strings to describe what piece of object state to change. Introducing KVC ???
2013-12-31 10:37:57
968
原创 !!!Obj-c on Mac --- Chapter 15 File Loading and Saving
Property Lists In Cocoa, there is a class of objects known as property list objects, frequently abbreviated as plist. These lists contain a small set of objects that Cocoa knows how to do stuff with,
2013-12-31 07:53:12
787
原创 !!!Obj-c on Mac --- Chapter 13 Protocols
Chapter 13 Protocols A formal protocol is a named list of methods. You adopt a protocol by listing the protocol’s name in your class’s @interface declaration. When you do this, your class is said
2013-12-30 12:18:46
494
原创 !!!Obj-c on Mac --- Chapter 10 - 12 Initialization Property Category
Chapter 10 Object Initialization Allocating Objects Allocation is the process by which a new object is born. alloc also conveniently initializes all the memory to 0. All your BOOLs start out as
2013-12-27 11:09:35
598
原创 !!!Obj-c on Mac --- Chapter 9 Memory Management
Object Life Cycle Reference Counting Every object has an integer associated with it, known as its reference count or retain count. When an object is created via alloc or new, or via a copy messa
2013-12-25 03:39:32
673
原创 !!!Obj-c on Mac --- Chapter 8 Foundation Kit
Chapter 8 Foundation Kit Cocoa is actually composed of two different frameworks: Foundation and Application Kit. Cocoa’s Foundation framework has a bunch of useful low- level, data- oriented class
2013-12-24 02:11:09
781
原创 !!!Obj-c on Mac --- Chapter 5 ~ 7
Chapter 5 Composition In Objective- C, you compose by including pointers to objects as instance variables. @interface Unicycle : NSObject { Pedal *pedal; Tire *tire; } @end // UnicycleStrict
2013-12-21 11:57:20
599
原创 !!!Chapter 4 The Medium Access Control Sublayer
Network links can be divided into two categories: Point-to-point connectionsBroadcast channels (It's also known as) multiaccess channelsrandom access channels MAC: Medium Access Control de
2013-12-20 06:14:57
866
原创 !!!Obj-c on Mac --- Chapter 2 ~ 4
Xcode uses the .m extension to indicate a file that holds Objective- C code and will be processed by the Objective- C compiler. File names ending in .c are handled by the C compiler, and .cpp files ar
2013-12-18 04:43:04
569
原创 Xcode
Archive archive can be used to generate .ipa file without a real device. The .ipa file can be used to create OTA link http://help.testflightapp.com/customer/portal/articles/1333914-how-to-create-a
2013-12-18 00:38:27
450
原创 !!!Chapter 3 The Data Link Layer
3.1 Data Link Layer Design Issues Providing a well-defined service interface to the network layer.Dealing with transmission errors.Regulating the flow of data so that slow receivers are not swamped
2013-12-12 02:33:23
853
原创 !!!Chapter 2 The Physical Layer
2.1 The Theoretical Basis for Data Communication Fourier Analysis: Any reasonably behaved periodic function, g(t) with period T, can be constructed as the sum of a number of sines and cosines. The
2013-12-09 02:59:47
702
原创 !!!Chapter 1 Introduction
Computer network: a collection of autonomous computers interconnected by a single technology. Interconnect: two computers are said to be interconnected if they are able to exchange information.
2013-12-04 06:32:29
955
原创 !!!sample
void swap(int *a, int *b) { int c = *a; *a = *b; *b = c; } void bubbleSort(int a[], int n) { bool swapped = true; int j = 0; int tmp; while (swapped) { swapped = f
2013-10-22 04:47:59
585
原创 !!!Cryptology
Cryptography is the practice and study of techniques for secure communication in the presence of third parties. Symmetric-key cryptography refers to encryption methods in which both the sender an
2013-10-07 22:51:03
512
原创 KNOW: Process Thread Sync Deadlock
Thread & Process Difference Between Thread and Process http://stackoverflow.com/questions/200469/what-is-the-difference-between-a-process-and-a-thread A process is an instance of a program in exe
2013-10-04 09:12:25
571
原创 !!!Chapter 7 Deadlock
A process requests resources; if the resources are not available at that time, the process enters a waiting state. Sometimes, a waiting process is never again able to change state, because the resourc
2013-10-03 23:00:05
792
原创 KNOW:Math & Probability
Prime Number every positive integer can be decomposed into a product of primes. 84 = 2^2 * 3^1 * 5^0 * 7^1 Let x = 2^i1 * 3^i2 * 5^i3 * ... Let y = 2^k1 * 3^k2 * 5^k3 * ... If x%y == 0, then for
2013-09-26 11:33:56
580
原创 !!!Chapter 6 Synchronization
Cooperating processes can either directly share a logical address space(multithread) or be allowed to share data only through files or messages. Concurrent access to shared data may result in data in
2013-09-22 23:57:07
1351
原创 !!!Chapter 5 Process Scheduling
5.1 Basic Concepts 5.1.1 CPU - I/O Burst Cycle The success of CPU scheduling depends on an observed property of processes: process execution consists of a cycle of CPU execution and I/O wait. 5.1.2
2013-09-18 09:54:58
1107
原创 !!!argc and argv as parameter of main function
Definition http://stackoverflow.com/questions/3024197/what-does-int-argc-char-argv-mean argv and argc are how command line arguments are passed to main() in C and C++. argc will be the number of
2013-09-16 23:00:33
749
原创 !!!Chapter 3 Process Concept
3.1 Process Concept A process is a program in execution. 3.1.1 The Process A process contains several parts: text section: the program code process stack: contains temporary data data section:
2013-09-13 04:39:22
879
原创 !!!Chapter 1 Introduction
1.1 What Operating System Do Operating system is the one program running at all times on the computer -- usually called the kernel. Along with kernel, there are two other types of programs: System
2013-09-11 04:03:33
467
原创 KNOW: BFS & DFS
BFS http://en.wikipedia.org/wiki/Breadth-first_search Definition In graph theory, breadth-first search (BFS) is a strategy for searching in a graph when search is limited to essentially two operat
2013-09-05 03:31:06
885
转载 !!!Data Padding
http://en.wikipedia.org/wiki/Data_structure_alignment
2013-08-16 06:19:14
998
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人