After a long time, I almost forgot about objective-C. there is no systematic learning and coding. I used to read books, but now I have no machine learning. I need to pick it up again...
1. Inheritance
1. Basic Concepts
A new class can be derived from an existing class. This process is called inheritance. A new class is called a subclass, and an existing class is called a parent class or a superclass.
2. inheritance features:
Video tutorial for iPhone development-objective-C language tutorial-1st-basic syntaxVideo tutorial for iPhone development-objective-C language tutorial-2nd-point syntaxIPhone development video tutorial-objective-C language tutorial-lecture
Change the company name in the source code comment: Run terminal. Enter the followingCodePress enter and restart xcode. Replace elf. sundae (AT) gmail.com (only one row)Defaults write com. Apple. xcode pbxcustomtemplatemedia definitions
Note: This is a summary of objective-C syntax translated by netizens.ArticleI think the original text is well written and can be translated, so I will show it here.
Click to download a Chinese PDF FileHere.
===================================
In C #, we use interfaces to implement polymorphism. For example, the interface iob defines a method F. There are two classes A and B that implement the IOB interface.
Iob item = new ();
Item. F (); // The execution is a.f ();
Item = new B ();
From: http://blog.csdn.net/diyagoanyhacker/archive/2011/05/30/6455244.aspx Write
Program It is not terrible to encounter bugs. Most problems are solved through simple log or
Code The analysis is not difficult to find the cause. However, when the
I am too lazy to write this Summary. I directly transferred it to an article on the Internet.Article: Http://blog.csdn.net/favormm/article/details/6928432
First look at the two runloop example, source: http://paste.lisp.org/display/86524 first: #
When talking about dynamic attributes in Article 7, we mentioned resolveinstancemethod. This method is not only used here, but also used to forward messages.
Message Forwarding is to send a message that is not implemented to an object and
Three Principles of Memory Management in OC:
1. Who created (new or alloc) and who release.
2. If you get an object from a method, assume that the retaincount of this object is 1 and has been set to autorelease. You don't need it, and you
I recently developed the iPhone and used cocoa. I feel that the cocoa design is exquisite and the objecitive-C syntax is very simple and easy to use. Therefore, I want to check whether there is a runtime environment in windows, this makes it easy to
Nonatomic: Non-atomic access, no lock when assigning values to attributes, multi-thread concurrent access will improve performance. If this attribute is not added, both access methods are atomic transaction access by default.
(Atomic is a thread
Document directory
Nsarray
Variable Array
Enumeration
Quick Enumeration
Nsdictionary
Cocoa provides many collection classes for use. The following describes how to use the objects.
Nsarray
Nsarray is a cocoa class used to store an ordered
Install gnustep
Gnustep Windows Installer provides a simulated development environment for objective-C on the Windows platform. There are four software packages, including gnustep system and gnustep core, gnustep devel and Cairo backend are optional.
Basic data types (NSInteger, CGFloat) and C data types (int, float, double, char, etc)
// Int, or NSIntegerThat is to say, when int type variables are needed, they can be the same as the program that writes C,Use int or NSIntegerBut we recommend
Objective-c:
2.1.1-2.1.3 description
1. judging whether the memory of a variable is allocated to the stack gipo is a key method on the stack is to see if it is a pointer. A pointer is a variable pointing to a memory address.
2.1.4 use
2.2
2.2.1 Functions
2.2.2 define functions
2.2.3 implementation and interface:
1. Create an interface file for the Unit
2. Create an implementation file
3. You need to modify the file that calls the function to include the interface file of
I am a java developer with some experience. Four years of java and three years of Android, I believe I don't need to talk much about why I want to learn IPhone. Because you know. Learning IPhone is certainly a piece of cake for me. First, the
Document directory
4.1. NSNumber type
4.2. NSArray type
At this year's WWDC 2012 Apple's global Developer Conference, Apple made significant improvements to LLVM compilers, And the LLVM compiler in the new version of Xcode 4.4 was upgraded to 4
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