At present, mobile development in the buzz, today at home to learn the recent "Objective-c Basic Tutorial", the initial feeling objective-c and. Net difference is very big, in order to better understand objective-c, will take note of the form of
1. Memory Storage AreaC, C + + inside. Stack area: Stores temporary variables and objects. Heap Area: stores dynamically allocated objects. Static variable Store: stores static variables and constant objects.The memory storage area of OC is the same
The objective-c object Modelas a objective-c software developer, you can still do a lot of work without having to understand Objective-c's originator C language and the object model adopted by OBJECTIVE-C. In fact, because these features are really
1. Related ConceptsBefore this note is started, we need to understand the following concepts.1.1 Stacks and heaps in the operating systemNote: The heap and stack mentioned here are not the same as the heap and stack in the data structure.Let's take
Class-dump is an easy-to-use objective-c anti-compile analysis tool that extracts class definitions from objective-c compiled binaries in the form of objective-c header files.Class-dump is an open source tool, the official website address is: http://
A large number of objective-c developers have emerged in the past few years. Some are transferred from a dynamic language, such as Ruby or Python, some of which are transferred from a strongly typed language, such as Java or C #, and, of course,
1, Introduction:The property is a objective-c keyword, used in pairing with @synthesize , to allow the compiler to automatically generate a method declaration with the same name as the data member. @synthesize is the implementation that is used to
IOS:If it is only for internal access, you can directly use _ XXX (underline), without your own definition, the compiler will automatically generateIf you need external access to this variable, you can use@ Property xxx;@ Synthesize xxx = _ XXX. In
AOP programming concept in objective-C
In the software industry, AOP is short for aspect oriented programming. It is a derivative model of functional programming. A technology that implements unified maintenance of program functions by means of pre-
Math in C language. h has a function: Double POW (double N, double M); Calculate math of C language to the power of M of N. h has a function: Double SQRT (double N); Calculate the value of the root number N (start n). The string in C: char * name = "
Three features: encapsulation, inheritance, and Polymorphism
Encapsulation:Encapsulation of member variables in order to filter invalid attribute values, we need to provide a method to set the age attribute values for the outside world.
Set
Http://foredoomed.org/blog/2014/02/24/object-modeling-of-objective-c/
Objective-C is an object-oriented programming language formed by the Smalltalk message mechanism added to C. It is mainly used by Apple to develop Mac OS X and iOS operating
From: http://blog.csdn.net/onlyou930/article/details/9299169classification: Objective-C2013-07-11 11: 54 3420 people read comments (0) collection reports Association is to associate two objects, so that one of the objects as part of another
Conversion from: instancetype and ID keyword in objective-CI. What is instancetype?
The same as the ID indicates an unknown object.
2. Related Result types)
According to the naming rules of cocoa, the following rules are met:
1. In the class method,
Article 11th: understanding the role of objc_msgsend
Calling methods on objects is a frequently used function in OC. In OC terminology, this is called "pass a message ). A message contains a "name" or "selector", which can receive parameters and may
In iOS development, nslock is commonly used to achieve simple mutual exclusion. Nslock operations include lock, unlock, trylock, and lockbeforedate. Therefore, the so-called lock and unlock are simple thread locks. trylock and lockbeforedate are two
Objective-C blocks
All of these examples have been verified with this version of llvm:
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)Target: x86_64-apple-darwin11.4.2Thread model: posixExample
void exampleA() { char a =
Do not repost the labor results of developers
Objective-C is obviously different from other object-oriented systems.The following describes the features of this method: compatibility, wordString, class, method, attribute, protocol, and
Do not repost the labor results of developers
C language was first developed at the at&t lab,
The development of Unix OS has promoted the rapid popularization of C language. Almost all unix OS are written in C language.
Brad J. Cox designed the
# Objective-c kvc automatic conversion type
Apple is very kind. During the time of KVC, we made some type conversions and posted the rules for your reference.
@ Interface entity: nsobject @ property (nonatomic, copy) nsstring * STR; @ property
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.