Reference: http://hi.csdn.net/hou_cocoa
Cocoa
It is a native compiling environment on Mac OS X. It contains two frameworks, namely a series of class libraries, foundation and appkit.
On your iPhone and other handheld devices, the app uses a
When C ++ (. cpp) or objective-C ++ (. mm) is used in objective-C (. m), the following error occurs during compilation:
Expected '=', ';', 'asm 'or' _ attribute _ 'before ***
The reason is that C ++ or objective-C ++CodeIt is called by objective-C
Press done on the keyboard to close the keyboard.
Select textfields in interface builder, find text input Traits in text field attributes, and set return key to done. OK
Definition Method
-(Ibaction) textfielddoneediting :( ID) sender; //
During the development process, we will encounter a lot of string operations. It is a common data type, and the usage of it is summarized below:
// 1. Create a constant string.
Nsstring * astring = @ "This IsString! ";
// 2. Create an empty string
I wanted to translate it, but I saw some translations on the Internet, so I directly reproduced it.
Original post address: http://www.i-alive.com/post/45/
English address:
Now it's still a dish. If there's any mistake, I hope to correct it!
If reprint, please indicate Source Address: http://blog.csdn.net/shinilaobababa/article/details/8453434
First, let's take a look at the golden rule of Memory Management in OC.
If
In IOS apps, if you want to save big object data, you can use XML files or attribute files. However, because the plain text method is not confidential enough, for example, you can encapsulate the stored data as an instance of a custom class and save
The following are the notes for learning objective-C 2.0. The original book I purchased is the original English version. Due to my limited level of English, there may be omissions in understanding.
Original book purchase address: Amazon
1.
The following are the notes for learning objective-C 2.0. The original book I purchased is the original English version. Due to my limited level of English, there may be omissions in understanding.
Original book purchase address: Amazon
3.
The following are the notes for learning objective-C 2.0. The original book I purchased is the original English version. Due to my limited level of English, there may be omissions in understanding.
Original book purchase address: Amazon
7. The
It is not terrible for iPhone objective-C exc_bad_access to write programs with bugs. For most problems, it is not difficult to find the cause through simple log or code analysis. However, when the problem of exc_bad_access is encountered in
Objective-CGrammar-something about dictionary objects
If the original Yusong Momo article is reprinted, please note: It is reprinted to my independent domain name blogYusong Momo program Research Institute, Original address:
Recently in the company to do a handheld frog game project, is using C ++ write cocos2d-x development, it is the iPhone cocos2d framework of another language version of the implementation, the biggest advantage is that it can run across platforms.
Based on the experience of many netizens and the experience of iOS development, the author summarizes the iOS development technology for later users to learn, I also hope that I can gain a deep understanding of iOS development.
1. Sources of
Keep writing logs.
Differences between printf and nslog
Nslog will automatically add line breaks without adding line breaks. nslog will add time and process information, while printf will only output the input content without adding anything
In objective-C # What does Pragma mark mean?
The following code commands are often seen in the code in xcode ide:
The following code commands are often seen in the code in xcode ide:
# Pragma mark-# Pragma mark Initialization
# What is Pragma?
Bibliography: Learn objective-C on the Mac
There are two ways to create a new object in OBJ: [classname new] and [[classname alloc] init]. The two methods are equivalent. Cocoa uses alloc and init.
1. Allocation object:
Allocation is the birth
I have written a similar article before. I want to help my new brother. Pai_^
The objective-C memory management mechanism in the iPhone system is flexible, that is, it can be used like C/C ++, you can also add an autoreleasepool to upgrade it to a
Objective-C syntax
Translate: sprouting stone
2010-03-10
Post please indicate to transfer Apple development Chinese Network (http://www.CocoaDev.cn)
The preceding description is an integral part of this document.
Objective-C is the most
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