Why is Stella SDK used?
Now cross-platform development tools more and more, such as the use of HTML5 phone gap, such as a name of the king proposed Cocos2d-x, there are many, these platforms can directly develop iOS and Android applications, but
In objective-C, attributes are usually set with the following keywords:
-- Assign: Specifies the setter method to use a simple value assignment, which is the default operation. You can use this attribute for scalar type (such as INT. You can
Reproduced in: http://www.cnblogs.com/54007/archive/2011/02/11/1951355.html
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
Nowadays, iPhone development is getting increasingly popular, and I am also eager to learn about objective-C. However, the company is a clear Windows XP system (not a sound picture of the company's machine) (^_^) and cannot learn and debug it. One
1. Objective-C Polymorphism
1. Concept: Different implementations of the same interface
Different classes can define methods that share the same name.
The dynamic type allows the program to determine the object type until execution.
Dynamic Type
Document directory
Create a string
Class Method
Get size
Comparison Policy
Case-insensitive comparison
How to determine whether a string contains other strings
Nsstring is a class used in cocoa to process strings. Below are some common
Document directory
Nsnumber
Nsvalue
Nsnull
Various numeric values
Both nsarray and nsdictionary can only store objects and cannot store any basic types of data, such as int, float, and struct. Therefore, we can use objects to encapsulate basic
1 Preface
For us, the singleton mode is nothing more common, that is, a program has only one class instance. Today we will introduce the singleton code in objective-C.2. code example
Mymanager. m
# Import "mymanager. H "static mymanager *
Objective-C syntax quick reference by cocoa China
10 Apr
Most beginners who have a basic development experience on other platforms are eager to see xcode. After seeing the interface builder, they are eager to get started with the objective-C syntax,
The category is a class, which is an existing class with new features added.Category is used to add a new method to an existing class. You can use the object of the existing class to call the added method without inheriting the existing class.The
The KVO key-value observer mode is an important mechanism of cocoa similar to the notification mode. When the attributes of the observer change, the observer performs corresponding operations.
Create a new person class to inherit nsobject, add the
Set a set of first-level single-value objects, which can be variable or unchanged. Operations include: searching, adding, and deleting members in a set (common to variable sets), comparing two sets, and calculating the intersection and union of the
1. First install the Objective-C Compiler
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
1. Definition class: In. H files,
@ Interface Class Name: parent class name
{
Member variables;
}
Member functions;
@ End;
In the. m file,
@ Implementation Class Name
Member function definition;
@ End;
2. member function definition:-(Return
An example of learning the Foundation has used all the things mentioned above, which is not bad.
Code:
// The AddressCard interface declares the header file
AddressCard. h
# Import # import @ interface AddressCard: NSObject { NSString *
Address: http://www.cocoachina.com/macdev/objc/2012/0613/4355.html
When to use self. most of the replies in the online search or forum are simply said that this is related to the objc access method, few people have answered the question about the
This section describes Objective-C classes and class objects. The method is simple to use. 1. Classes and Methods
Class declaration syntax, declares a class called MyClass, which inherits from the root class: NSObject. (The root class can be
No matter how perfect a class design is, there will inevitably be unpredictable demands. How can we expand the existing class? Of course, inheritance is a good choice. However, Objective-C provides a special way to extend the class, called Catagory.
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