First, the class1. Class nameclass names should be prefixed with three uppercase letters (two-letter prefix for Apple's class reservation)
Not only the class, the public constants, protocol, etc. are prefixed by the same three uppercase letters.
Categories Category1, overviewAdd new methods to existing classes, and the objective-c term for these new methods is "category".2, UsageA, Declaration category@interface NSString (numberconvenience)-(number *)
Starting today with OC Write iOS program, encountered problems have1. When different classes use the method of a class or access the properties of a class (public methods or properties), the method or property must be declared in the class header
Words don't say much, learn so much, write a quick sort first.In addition to the Quick platoon, there is time to add heap, merge and so on.Learned today, classes, protocols, grammars.Because the algorithm class, more than one algorithm. So create a
"Original" to talk about the misunderstanding of agent mode in Objective-cPlease specify the source of the article reproduced-- polobymulberry-Blog Park1. Preface
This article mainly compares the proxy mode and the delegate mode, and
Http://www.tuicool.com/articles/ERvUbmR1. If the return value of the method is newly created, the first word of the method name should be the return value type, unless there is a modifier such as localizedstring;2. The noun representing the
Chain programming thought chain programming is whatChained programming is to connect calls to multiple methods using DOT syntax to make the code more concise and more readableFirst Contact chain programming is masonry, it's really cool to use.
First, the knowledge point:QQ Chat InterfaceUse of dual models (Datamodel and Framemodel)Use of UitextfieldUse of notificationsTwo ways to stretch a picture (the Resizeableimagewithcapinsets property of a Slicing/image object)EnumerationExtraction
When you do not have a Mac or virtual machine, compile objective-C in windows.ProgramWhat about ??
Next, I will explain in detail how to compile objective-C language in windows.
1. Install the object-C CompilerThere are many objective-C
Zhihu: I have nothing to do with reading obj-C books in the library over the past few days. After reading obj-C for two days, I feel that this is not an object-oriented C, and the class syntax is so weird. What is the essential difference between
Nslog is similar to printf and will also output the display result on the console.
% @ Object
• % D, % I integer
• % U unsigned integer
% F floating point/double-Character
% X, % x binary integer
% O octal integer
• % Zu size_t
• % P
As I writeProgramThe experience is not quite rich, and the understanding of object-oriented is still stuck in the state of knowing the principle but not how to use it efficiently, so here is a brief introduction to my understanding. object-oriented
---------------------- ASP. NET + unity development,. Net training, and hope to communicate with you! ----------------------
I. Memory Management 1. Why should I use memory management:
The memory of mobile devices is extremely limited, and the
BlockApple uses the extension Statement C, objective-C, C ++, and block. Currently, only Mac 10.6 and iOS 4 are supported. A block is composed of a bunch of executable programs. You can also perform a function without a name (anonymous function ).
1. If you want to know the specific data type in nsnumber, the @ encode keyword will be used.
Use @ encode (Atype) to return the C string of this type, represented by const char. For example, @ encode (INT) returns I; @ encode (float) returns
Nsdictionary serves the same purpose as the dictionary in Java and provides a set of "healthy-value" pairs.
For example, the dictionary is used to store employee numbers into employee names. The number is a key (unique) and the name is a
A dictionary is a collection of key-object data. Just like the definition of a word in a dictionary, you can use the object key to obtain the required value from the objective-c dictionary.
Keys in the dictionary must be single-valued. Although they
Note: This Objective-C topic is a prelude to iOS development. It also helps programmers with experience in object-oriented language development to quickly get started with Objective-C. If you have no programming experience or are not interested in
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.