At present, mobile development in the buzz, today at home to learn the recent "Objective-c Basic Tutorial", the initial feeling objective-c and. Net difference is very big, in order to better understand objective-c, will take note of the form of
Main.m1 #import2 /**3 * Test the difference between the pointer type parameter and the common parameter4 *5 * @param A pointer-type parameter6 * @param b general Parameters7 *8 * @return (pointer type parameter +2) + (normal parameter +2)9 */Ten
First, the concept:1. Delegate (delegate, also called agent): When an object receives an event or notification, it queries its delegate object whether it can respond to the event or notification, and if so, This object sends a message to its
A large number of objective-c developers have emerged in the past few years. Some are transferred from a dynamic language, such as Ruby or Python, some of which are transferred from a strongly typed language, such as Java or C #, and, of course,
Xcode provides the function of converting a source file into an assembly file, The Assembly Code is as follows: # Assembly output for assemble. C # generated at 2:29:34 pm on Monday, May 25, 2014 # using debug configuration, x86_64
From: http://www.cnblogs.com/csutanyu/archive/2011/12/12/Objective-C_memory_layout.html
In my understanding, an object is a piece of memory. This article will discuss the layout issue of an objective-C object in the memory, if a class does not
Objective-C has a brain problem.
Description:
The asiformrequest class is a subclass of the asihttprequest class. In the function, retain is performed on the asiformrequest pointer returned in another place. Out of this function, the retain
ArticleDirectory
4. Inheritance
4. Inheritance
This series of lectures has a strong correlation. If you are reading this article for the first time and want to better understand the content of this chapter, I suggest you read it from
Address: http://amattn.com/2011/10/15/the_disposition_of_objective-c.html
After ten years of objc programming, I will discuss some comments on objc here.
Verbose)
This is the most obvious objc feature. Objc programming always uses extremely
---------------------- ASP. NET + unity development,. Net training, and hope to communicate with you! ----------------------
Three main characteristics of object-oriented (essence): member variables, methods) encapsulation, inheritance, and
From: http://blog.csdn.net/onlyou930/article/details/9299169classification: Objective-C2013-07-11 11: 54 3420 people read comments (0) collection reports Association is to associate two objects, so that one of the objects as part of another
1: Class class:Typedef struct objc_class * class;From the definition of Class, we can see that it is a pointer to the objc_class structure type. What is objc_class?
Struct objc_class {struct objc_class * ISA; struct objc_class * super_class; //
Do not repost the labor results of developers
Access member variables
From the perspective of object-oriented encapsulation, if you want to access member variables in the member class through methods, the member variables must have a scope
Although iOS 5/Mac OS X 10.7 starts to import arc, xcode4.2 can be used. ARC is an automatic reference counting function that provides automatic memory management for objective-C Programs during compilation. Arc allows you to focus on the code,
1. Steps for declaring a class interface:
1. Declare a class interface and add the class name with @ interfacekeyword.
2. Use {instance variable} to define various data members.
3. method declaration: declare a C function using the infix syntax and
Objective-C is obviously different from other object-oriented systems. It has its own distinctive characteristics. Next we will introduce its features from this method: compatibility, String, class, method, attribute, protocol, and classification.
1
Http://www.cnblogs.com/zhwl/archive/2012/01/05/2312649.html
Note the following differences between objective-C and Java:
A. Java uses class to identify classes, while objective-C uses @ interface/@ implementation to identify classes;
B. Java uses
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service