- 博客(121)
- 收藏
- 关注
原创 View Programming Guide for iOS
About Windows and ViewsWindows 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
770
原创 !!!Chapter 7 The Application Layer
7.1 DNS --- The Domain Name SystemTheoretically, 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
773
原创 !!!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
526
原创 iOS App Programming Guide => Advanced Tricks
Configuring Your App to Support iPhone 5To 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
899
原创 iOS App Programming Guide => State Preserve/Restore & Resources
State Preservation and RestorationThere 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 stateYou
2014-01-12 04:48:10
1285
原创 iOS App Programming Guide => App States
App States and MultitaskingAs 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
1200
原创 Apple Documentation List
For more information about the standard container view controllers provided by UIKit, seeView Controller Catalog for iOS.For guidance on how to manipulate views in your view controller, see View
2014-01-08 04:49:39
496
原创 iOS App Programming Guide => Design Basic & Core Objects
iOS App Programming Guide
2014-01-08 04:33:51
928
原创 !!!Chapter 5 The Network Layer
网络层涉及分组从源端-〉目的端处理端到端数据传输的最低层数据链路层涉及数据帧从导线的一端到另一端5.1 Network Layer Design IssuesServices the network layer provides to the transport layer:The services should be independent of th
2014-01-07 23:31:02
881
原创 Xcode Overview
Xcode OverviewWrite Code in the Source EditorPerform Static Code AnalysisUse 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
583
原创 Xcode Concepts
Xcode ConceptsXcode ConceptsXcode TargetA 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
506
原创 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-etcIn Xcode this is called "Code Sense". And these icons also exist in Xcod
2014-01-04 10:51:27
1061
原创 !!!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 PredicateOne way to create p
2014-01-03 10:24:51
712
原创 !!!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
915
原创 !!!Obj-c on Mac --- Chapter 15 File Loading and Saving
Property ListsIn 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
752
原创 !!!Obj-c on Mac --- Chapter 13 Protocols
Chapter 13 ProtocolsA 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
463
原创 !!!Obj-c on Mac --- Chapter 10 - 12 Initialization Property Category
Chapter 10 Object InitializationAllocating ObjectsAllocation 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
562
原创 !!!Obj-c on Mac --- Chapter 9 Memory Management
Object Life CycleReference CountingEvery object has an integer associated with it, known as its reference count orretain count.When an object is created via alloc or new, or via a copy messa
2013-12-25 03:39:32
638
原创 !!!Obj-c on Mac --- Chapter 8 Foundation Kit
Chapter 8 Foundation KitCocoa 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
736
原创 !!!Obj-c on Mac --- Chapter 5 ~ 7
Chapter 5 CompositionIn 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
566
原创 !!!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 channelsMAC: Medium Access Controlde
2013-12-20 06:14:57
806
原创 !!!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
530
原创 Xcode
Archivearchive can be used to generate .ipa file without a real device. The .ipa file can be used to create OTA linkhttp://help.testflightapp.com/customer/portal/articles/1333914-how-to-create-a
2013-12-18 00:38:27
420
原创 !!!Chapter 3 The Data Link Layer
3.1 Data Link Layer Design IssuesProviding 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
789
原创 !!!Chapter 2 The Physical Layer
2.1 The Theoretical Basis for Data CommunicationFourier 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
647
原创 !!!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
908
原创 !!!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
557
原创 !!!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
471
原创 KNOW: Process Thread Sync Deadlock
Thread & ProcessDifference Between Thread and Processhttp://stackoverflow.com/questions/200469/what-is-the-difference-between-a-process-and-a-threadA process is an instance of a program in exe
2013-10-04 09:12:25
533
原创 !!!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
749
原创 KNOW:Math & Probability
Prime Numberevery positive integer can be decomposed into a product of primes.84 = 2^2 * 3^1 * 5^0 * 7^1Let 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
541
原创 !!!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
1246
原创 !!!Chapter 5 Process Scheduling
5.1 Basic Concepts5.1.1 CPU - I/O Burst CycleThe 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
1048
原创 !!!argc and argv as parameter of main function
Definitionhttp://stackoverflow.com/questions/3024197/what-does-int-argc-char-argv-meanargv and argc are how command line arguments are passed tomain() in C and C++.argc will be the number of
2013-09-16 23:00:33
719
原创 !!!Chapter 3 Process Concept
3.1 Process ConceptA process is a program in execution.3.1.1 The ProcessA process contains several parts:text section: the program codeprocess stack: contains temporary datadata section:
2013-09-13 04:39:22
828
原创 !!!Chapter 1 Introduction
1.1 What Operating System DoOperating 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
438
原创 KNOW: BFS & DFS
BFShttp://en.wikipedia.org/wiki/Breadth-first_searchDefinitionIn graph theory, breadth-first search (BFS) is astrategy for searching in a graph when search is limited to essentially two operat
2013-09-05 03:31:06
838
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人