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'
Jspatch is a GitHub open source framework that can dynamically use JavaScript to invoke and replace Objective-c properties and methods in the project through the objective-c run-time mechanism. Its compact Framework, concise code, and interaction
The popularity of JSON and XML personally felt to simplify the difficulty of reading, as well as reduce network load, JSON and XML data format after the format is a tree-like structure, you can tree vine touch melon to get any fruit you want.
And
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
1th: Understanding the origins of Objective-c language
1. Message Structure of OBJECTIVE-C
OBJECTIVE-C uses "message structure" instead of "function call". The key difference between a message structure and a function call is that the language in
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
Objective-c, the strong and weak pointers under ARC are explained in principleTip: The "instance variable" in this article is "member variable" and "local variable" isFirst, IntroductionARC is a new feature that has been added since iOS 5,
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
An object is an item. Object-oriented programming can be seen as an artifact and something you want to do with it. This differs from the C language in that C is often referred to as procedural language. In C, it is usually the first thing to think
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
Turn from: copyright notice: This article by http://blog.csdn.net/totogo2010/Original, welcome reprint to share. Please respect the author Labor, reproduced when the statement and the author of the blog link, thank you!Original link:
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
Get and set methods in Objective-cSet method1. Function: Provide a method to set the value of member variables to the outside world, can be in the method to face the parameters of the corresponding filter2. Naming conventions:1> method name must
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
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
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.