"Basic Concepts"
Key-value observation is a notification mechanism that enables an object to obtain changes to specific properties of other objects. The binding technique of the controller layer is to obtain the change notification of the model
the problem solved
Everything is produced in the real life of the urgent need for such things, people by thinking about inventing something to solve the problem. Then the automatic release pool is used to solve any problems. Take a look at the
Objective-c's protocols and proxies are one of the most widely used features, and can be said to be ubiquitous in the development of the Apple series. In fact, many people do not know the principle behind it. In fact, simply put, this is the classic
OC ArrayNsarray is a static array, that is, it points to the content is immutable, it points to a memory area, once initialized, it can not be used to modify the memory area of the data, but it is able to read the data.Nsmutablearray is a subclass
Source: Xcodemen (Kang Zubin)
Links: http://www.jianshu.com/p/5d7033b15052
This article is written by our team of Kang Zubin Children's shoes, which is his personal homepage: https://kangzubin.cn.
AssociationAssociation refers to associating two objects together so that one of the objects is part of another object.The affinity attribute is only available on Mac OS X V10.6 and later versions.Add extra storage space for a class beyond the
First, what is InstancetypeInstancetype is clang 3.5, a keyword provided by clang that represents an unknown type of objective-c object returned by a method. We all know that an object of an unknown type can be represented by an ID keyword, so why
There is only a things in computer science:cache invalidation and naming things.There are only two difficult things in computer science: Cache invalidation and naming.
–phil Karlton
Computer language is the medium of communication between
PrefaceAt present, Objective-c (OC) is the core language of iOS development, in the development process will also cooperate with the use of C language, C++,OC mainly responsible for the UI interface, C, C + + can be used for graphics processing.
KVC (key-value-coding?) 1, overviewA method that sends or obtains a value as a string to an instance variable or property of an object.2, usageA, take the value@property (readwrite,copy) nsstring * name; Car.h@synthesize NAME;//CAR.MNow, I want to
Artifice refers to a skill and a product that is too kit and useless.IMS refers to Instance method swizzling, which is confused by instance methods.The next section of code is an example of a instance method swizzling and a method swizzling://MAN.M-
After the day before the blog, today continue to explain the 27 questions. Test Question address: http://www.eosgarden.com/en/articles/objc-quizz/take/31.Which of the following can be inherited?Which of the following can be inherited?Answer:
Knowledge pointsUse of the 1.NSString classUse of the 2.NSMutableString class==========================================NSString1.NSString object vs. C type stringOC string is an object C string that is just a single letter stitchingOC string
One, memory management of the typeEveryone has been to the library, and the books in the library can be borrowed. Let's imagine a scenario where everyone goes to borrow books, but no one has ever returned a book, so finally, the library will go
Original link: The official raywenderlich.com objective-c style guide
Original Author: raywenderlich.com Team
Version: raywenderlich.com objective-c Coding Specification
Translator: Sam Lau
As I'm preparing to mimic the
Versions and platformsThe runtime system, for Objective-c, is like its operating system, or running support platform, which allows the OBJECTIVE-C code to run in accordance with established language features. In contrast to C + +, objective-c as
When we learn C language, encountered a program jump, called Goto,goto can jump to any place in the program. Again later, learned the programming methodology, I do not know which computer predecessors (seemingly Dijkstra), that Goto makes the
As with C and C + +, Objective-c also uses the header file and the implementation file (implementation files) to partition the code. The standard way to write "class" in the Objective-c language is to create two files with the name of the class name,
Compilation warning
Now the compiler is sometimes very noisy, and the warning given by the compiler is very useful to developers. The warning will not stop compilation and linking, nor cause the program to be unable to run, but many times the
@ Class keywordsTo import a certain type of functional code, you need to include this class. h file. If you only need to know that this object is a class (for example, the following declaration in a file: person * person;), you can use @ class
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