Object-orientedCLanguage
When it comes to object-oriented languages, most Windows developers first think of C ++, C #, or Java. However, if you first think of objective-C, you should be a developer in Mac OS, in this modern computer system, mac OS
To set a breakpoint Objective C selectors namedAlignleftedges:You can enter either:
(Lldb) breakpoint set -- selector alignleftedges:(Lldb) breakpoint set-s alignleftedges:
You can limit any breakpoints to a specific executable image by using"--
Note: This is a summary of objective-C syntax translated by netizens.ArticleI think the original text is well written and can be translated, so I will show it here.
Click to download a Chinese PDF FileHere.
===================================
The classification mechanism allows you to add new method declarations to a class file. It does not need to use the subclass mechanism and defines these methods under the same name in the class implementation file.
# Import "classname. h"
@
"Multi-inheritance" of objective-C"
When single inheritance is not enough and it is difficult to model the problem domain, we usually think of Multi-inheritance directly. Multi-inheritance is the ability to derive from an additional direct base
Background
Singletons classes are an important concept to understand because they exhibit an extremtely useful design pattern.
This idea is used throughout the iPhone SDK, for example, uiapplication has a method called sharedapplication which when
After reviewing the basic syntax of Objective-c, each review will have a new mind. The following are the summary points:
1. If the allocated memory is not effectively recycled, memory leakage may occur.
2. Determine whether the memory of a variable
The id type has been predefined as the pointer type.
Accessors
Certificate -----------------------------------------------------------------------------------------------------------------------------------
In Objective-C, all instance variables
Document directory
Http://fei263.blog.163.com/blog/static/9279372420113193523828/
Block
Http://fei263.blog.163.com/blog/static/9279372420113193523828/Block
Apple uses the extension Statement C, objective-C, C ++, and block. Currently, only Mac 10
Objective-c:
2.1.1-2.1.3 description
1. judging whether the memory of a variable is allocated to the stack gipo is a key method on the stack is to see if it is a pointer. A pointer is a variable pointing to a memory address.
2.1.4 use
2.2
2.2.1 Functions
2.2.2 define functions
2.2.3 implementation and interface:
1. Create an interface file for the Unit
2. Create an implementation file
3. You need to modify the file that calls the function to include the interface file of
Custom class. On Object-c, a class is composed of a public header file. h and A private implementation file. m. the header file defines the class interface, starting with @ interface and ending with @ end as follows: # import
@ Interface Member:
In Windows, there are two main types of hooks: Message hooks and function hooks. Sometimes you must use hooks when implementing some functions.
The function hook is mainly used to replace the entry address. In a broad sense, many things are hooks,
Delegate)Is an object. The object of another class requires the delegate object to perform some of its operations.Creating an "NSObject" category is called creatingInformal agreement.Any class object that implements the method in the "NSObject"
Strong and weak are new object variable attributes introduced by ARC. The weak and strong attributes are required only when you open the ARC.
@ Strong is similar to @ retain
@ Weak is similar to @ assign, but @ weak has assigned a value to nil after
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
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
Show Excel I will not introduce, most people know that you can use the UIWebView control, so directly go to the code
//// ViewController. m // PRJ_excelDemo /// Created by wangzhipeng on 13-4-12. // Copyright (c) 2013 com. comsoft. all rights
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.