This article is from the long458 column, linked to http://blog.csdn.net/long458/article/details/41981273In general, there are several ways to sort the array commonly used in OC:
Used in the development of iOS is the Objective C language, which is an object-oriented languageInterfaces and implementationsFiles that are completed in objective are called interface files, and the definition of such a file is called an
The earth has only one, so declare a Earth object on it, you can not declare two AH! Similarly, sometimes a class can have only one object case, such as a server, just want to save to a in//face, this way, the next time you can take out the last
What is a timestamp?time Stamp ( timestamp ), which is typically a sequence of characters. Uniquely identifies a moment in time. Digital Timestamp technology is A variant application of digital signature technology. thinking: Simply speaking is
NSString, immutable strings, that is, content and length cannot be modified after creation.Nsmutablestring, a mutable string that can be modified after it is created.Immutable string (NSString)Create a string1 //Create a string2NSString *STR1 =
See this article as you have learned the basics of object-oriented.(I think this theory of the concept of something, no one teacher will understand when they say it.)Here does not mention my teacher how NB, he said several times I did not understand,
Pre-preparation for OC languageI. INTRODUCTION of OCOC language on the basis of the C language, the addition of a layer of the smallest object-oriented syntax, fully compatible with the C language, in the OC code, can be mixed with C, or even C + +
Test Address: http://www.eosgarden.com/en/articles/objc-quizz/take/This is a few days ago friends shared obj-c test questions, a total of 57 questions. Self-Mastery OC I went to do the next test, the result has been a more serious psychological blow,
In previous projects, our programming was written directly in a main.m file. The main () function of the class, @interface and @implementation parts are crammed into a file. This structure is also available for small programs and simple applications.
Nsset to tell the truth, the application of this class, still do not know when the end will be used, first over the brain, after the need to use the time, not unfamiliar!#import int main (int argc, const char * argv[]) {@autoreleasepool {Create 4
@ stands for "Objective-c" logo that proves you are using objective-c languageObjective-c language keywords, @property paired with @synthesize.function: Let the compiler automatically write a method declaration with the same name as the data member,
In associated objects last week, we began to explore some of the dark spells of the OBJECTIVE-C runtime. This week we went on to discuss perhaps the most controversial run-time technology: Method swizzling.Method swizzling refers to the process of
There are two types of object replication: Deep replication and shallow replication. It sounds very difficult, but it is actually very simple; For example: Nsmutablearray * array1 = [nsmutablearray arraywithobjects: @ "A", @ "B", nil];
Block is used to save a piece of code.
Block ID: ^Blick is similar to a function. 1. It can save code segments. 2. It has returned values. 3. It has parameters. 4. It has the same calling method.
Block definition:
Return Value Type (^ block name)
Objective-C adds the object-oriented Feature Based on the C language through a new set of syntax. The OC syntax frequently uses braces ([]) and does not limit writing very long method names, which often makes many people think the language is
Preface
In Java, we can access the public member variables of an object through "Object Name. member variable name", which is called "Point Syntax ". For example:
1. define a common member variable Age in row 2nd of the student class.
1 public class
1. nsdictionary and nsmutabledictionary
Nsdictionary dictionarywithobjectsandkeys :~, Nil
Create a dictionary using a key-Value Pair and end with the NIL flag
Nsdictionary initwithobjectsandkeys:
Use Key-value pairs to initialize the dictionary,
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