Block type
Block is a data type that is widely used in iOS development and is highly recommended by Apple, which functions like a function pointer in C.^ is a unique symbol of block.The implementation code for the block is included in the {}.In
Use of declarative properties: Declarative properties are called compile-time syntax @property (retain,nonatomic) Some *s; @property ( parameter one , parameter two ) Some *s; parameter 1: Retain: Decorated reference (object) data type Assgin:
First, what is the proxy mode?Proxy mode is a kind of design pattern that is often encountered in OC, what is called proxy mode?As an example:There is a baby, he himself will not eat and bathe and so on some things, baby mother to work and very busy,
objective-cObjective-c extends the C language and joins the object-oriented and Smalltalk messaging mechanisms. The core of this extension is a runtime library written in C and compiled languages. It is the cornerstone of Objective-c object-oriented
1. InheritanceOBJECTIVE-C does not support multiple inheritance. Super Keyword: Call the parent class of the class; superclass: Another way of saying the parent class.2. Custom NSLog () output:Adding the description method to a class allows you to
New is rarely used in real-world development, and generally we see [[ClassName alloc] init], but it doesn't mean you won't touch new, you'll see [ClassName new] In some code, and when you go to an interview, is also likely to be asked this
make a simple nine Gongge:The source code is as follows:1 #import "ViewController.h"2 3 @interfaceViewcontroller ()4 5 @end6 7 @implementationViewcontroller8 9- (void) Viewdidload {Ten [Super Viewdidload]; One A //Create a nine grid -Nsinteger
Nsarray: Ordered collection, Nsset: Unordered collection, hash store. But Nsset guarantees the uniqueness of the data. When you insert the same data, there is no effect. From the internal implementation is a hash table. Nsmutableset is a subclass of
1, Nsset1. is an unordered collection class that manages multiple objects, with the greatest feature being that duplicate objects are not allowed in the collection, and that the mathematical set meanings are the same2. Other functions and Nsarray
Nsinteger is not an object, converted to a long match 64-bit system, and then composed of a string (%LD).NSString *inStr = [NSString stringWithFormat: @"%ld", (long)month];Note that on 64-bit processors, such as the new A7 chip, if your app was
Reference: http://blog.csdn.net/hahahacff/article/details/39839571After watching the video, the article summarizes the OBJECTIVE-C memory management that you understand.This article from the top to the next step in depth.ARC1. Basic operating
@ 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,
I want to call C ++'sCodeHere, I will summarize my methods,The Hello class is only an encapsulation of Calling C ++ for objective-C..
However, I feel that this is too inconvenient. If there are a lot of C ++ code, it will be very difficult to do
Objects in obj-C include nsarray, nsdictionary, nsstring, nsnumber, nsdate, nsdata, and their variable versions (nsmutablearray, nsmutabledictionary... in this way, you can easily serialize your data in a certain format (such as XML format) and save
Shortest copy
A shallow copy is a copy of the memory address, so that the target object pointer and source object point to the same memory space. For example:
char* str = (char*)malloc(100); char* str2 = str;
The light copy is only a simple copy
StatementYou are welcome to repost this article, but please respect the author's Labor achievements. repost this article and keep the statement in this box. Thank you.Article Source: http://blog.csdn.net/iukey
This is probably because
Automatic type conversion or forced type conversion can be performed based on the storage space occupied by data types. The general principle is that the data type of small storage capacity can be automatically converted to the Data Type of large
The cygwin and iPhone sdks are installed in windows. After a lot of code is downloaded, the result is a mix of C objective-C. Since the company used to play C ++ games, compilation has always been a problem. I checked a lot of information and
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