Objective, objectivec
Objective-c Chapter 1 Hello world
1.1
1.2.On the Welcome screen, click "Create a new Xcode project" (see Figure 2-1), or just chooseFile-> New Project.
1. 3. Write the following code in main
#import int main(int argc,
Object, objectid
Object-c OOP, source code organization, Foundation framework details 1
1.1 So what is OOP? OOP is a way of constructing software composed of objects. Objects are like little machines living inside your computer and talking to each
The IOS viewDidLoad method is executed twice (detailed description of the viewDidLoad and loadView methods)
To understand the usage and call sequence of methods such as viewDidLoad and loadView, a small demo is written. unexpectedly, the viewDidLoad
Value passing in the basic iOS control UINavigationController and iosui Control
In the Basic iOS control UINavigationController, the value is transmitted by proxy, forward, and reverse.
# Import // declare a protocol @ protocol SendValue //
Several value passing methods (attribute, proxy, block, Singleton, notification) and iosblock between iOS pagesHow does the second view controller obtain partial information of the first View Controller? For example, lable In the second interface
MVC design mode and iOSMVC design mode in iOSWhen organizing code files for large projects, we often use MVC ideas. The concept of MVC is very simple, just like an object. However, understanding and application are very difficult. Today, we will
FMDB and iosfmdb
I. What is FMDB?
Most of the SQLite APIs originally generated in OS are in C language code, which is inconvenient to use. Therefore, many third-party frameworks for SQLite encapsulation have emerged, FMDB is one of
IOS --- Singleton Mode
Dispatch_once
The dispatch_once function is an API that only executes the specified processing once during application execution. The following Frequently-seen source code for initialization can be simplified through the
Tips for iOS development
1. function used to calculate the image position: AVMakeRectWithAspectRatioInsideRect ()
Through this function, we can calculate the center display of an image placed in another view according to a certain proportion. It may
The ASIHttpRequest function is used to load network data and data.
To use the third library of ASIHttpRequest, You need to configure
II,
The data upload function uses ASIFromDataRequest (binary and string can be uploaded to the server)
The
Use TextKit to implement expressions, image and text mixing, and textkit expressions
Using coreText and coreImage that was previously provided by Xcode to achieve text-and-text mixing, the Code volume is very large and is not easy to
IOS Reveal and simple cracking methods
Reveal, as a powerful tool for analyzing the app ui, is very easy to use and can be used to view any UI layout.
1. simulator Analysis
1. Open Reveal (http://revealapp.com download)
2. Open Xcode
3. Reveal -
WWDC-iOS memory performance and Principle notesHow is the iOS memory initialized and managed?
In iOS, the pointer address range is very large, 32-bit CPU has 4 GB size, 64-bit CPU has 18 EB size (about 2 to 60 power ), such a large pointer address
IOS call system SMS function details
The SMS function of iOS call system can be divided into two types: 1. The system sends messages outside the program. 2. The program calls the system to send text messages. The second advantage is that users can
IOS development-Gesture Recognition (UIGestureRecognizer)UIGestureRecognizer
The UIGestureRecognizer must be used to complete gesture recognition.
Using UIGestureRecognizer, you can easily identify some common gestures you make on a
Handling iOS users' click eventsProcessing Mechanism
For iOS event processing, you should first find the view that can process click events, and then process the click event in the view that you find.
The processing principle is as follows:
• When a
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