Tiobe published the July 2011 list of programming languages, the title of this issue: OBJECTIVE-C will become the language of the year.
The top three are still Java, C, c++,4 to 10, followed by C #, PHP, Objective-c, Visual Basic, Python, Perl, and
1. Related Concepts
Before we begin this note, we need to understand the following concepts.
1.1 Stacks and heaps in the operating system
Note: The heap and stack mentioned here are not the same as the stacks and stack in the data structure.
Let'
transferred from: http://stephen830.iteye.com/blog/1461354
if the life cycle of an object is obvious, it is easy to know when the new object is to be used and when it is no longer needed, in which case the manual retain and release are used
Using C + + with Objective-cApple's Objective-c compiler allows users to freely mix C + + and objective-c in the same source file, with a mixed language called objective-c++. With it, you can use an existing C + + class library in your OBJECTIVE-C
First, OBJECTIVE-C (hereinafter referred to as OC) Introduction Objective-c is based on C, the addition of object-oriented features to expand the general-purpose high-level programming language, but also writing OBJC, obj-c and less used Objective
Understanding Method Swizzling is a good opportunity to learn the runtime mechanism. Not much to do in this, only translated by Mattt Thompson published in Nshipster's method swizzling article.Method Swizzling is a technique that changes the actual
Introduction: Recently in learning data structure, here with objective-c simple implementation of the stack. It's really easy to use objective-c, because I used the cocoa framework to provide nsmutablearray as a collection of storage elements, and
Original address: http://onevcat.com/2013/05/talk-about-warning/
A moral integrity programmer cares about the warning of his code, just like a dead cockroach on the edge of a job. --@onevcat
Attention to compilation warningsThe
First, the Protocol protocol is mainly to provide interface, or similar to C + + multiple inheritance function, to provide a cosmetic mechanism for the class. The protocol is not born for callbacks, it should represent a set of interop conventions.
Many of the veterans who have developed iOS for several years may not be very clear about the use and differences of the various structures in the. h file and the. m file. Recently studied carefully, wrote an article to write down.Generally, when
1. Memory Management
Heap and Stack
Stack (operating System): automatically allocated by the operating system release, storing the function parameter values (parameters), the value of local variables and so on. It works like a stack
How do you define a class in Objective-c? We can use the following format to represent:[CPP]View Plaincopy
@interface Class Name: Parent class Name {
variable definition;
}
method definition;
@end;
An example is given
Naming rules are important for easily maintainable code. Objective-c's method names are often very long, but blocks of code read like prose, and do not require too much code comments.When writing pure Objective-c code, we basically adhere to the
1, OC IntroductionFull Name: Objective-c is an object-oriented programming language that expands C and is used primarily for iOS and Mac OS development.
On the basis of the C language, a minimal object-oriented syntax is added.
Fully
In Java, in particular a standard Pojo class, we define some properties and then generate the appropriate getter and setter for each property. For example:PackageCom.Demo;/** * Phone class * @author LIUZC * *Public Class Phone {Private StringColor;
Nil: A null pointer to an Objective-c object.(#define NIL ((ID) 0))Nil represents a Objective-c object with a pointer to an emptyNil: A null pointer to an OBJECTIVE-C class.The first capital of nil and nil is a bit different, nil defines a pointer
ArticleDirectory
2, from Hello, world! Start
2, from Hello, world! Start
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
Http://www.devbean.info/2011/04/from_cpp_to_objc_17/
Exception Handling
Compared with C ++, exception handling in objective-C is more like Java, mainly because objective-C has a @ finally keyword. A similar finally keyword exists in Java, but
1. Invalid constant
0X10.5 0x0g1 98.7u 17777 s 0996 1.2Fe-7 15,000.
2.
// You only need to list the expressions. Int F = 27; // set F to the Fahrenheit temperature and assign a value of 27 float C; // set C to the Celsius temperature, type is
Objective-C syntax Quick Reference
By cocoa China[The hottest Mac, iPhone Professional Development Forum] [permanent address of this article]
10 APR
Most beginners who have a basic development experience on other platforms are eager to see xcode.
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