Cocoa provides two methods for communication between IOS threads, one is mongomselector and the other is port.
Let's talk about the 1st types, which are the following:
2nd are nsmachport methods.Nsport has three subclasses: nssocketport,
Step 1: add the fmdb class library to the project in the new project,
Step 2: Put the. DB database in the following directory:
/Users/Apple/library/Application Support/iPhone
Definition
Category (Category) YesObjective-CNew features of the language to add new methods for existing classes. Limitations: 1. You cannot add new instance variables. 2. Conflict with the method name of the class. When a name conflict occurs,
Search for information
Develop applicationsProgramYou need to obtain detailed technical information easily. Xcode allows you to easily find the required information during programming.
Xcode quick help displays concise reference information
Currently, the vast majority of applications can be updated, and you will receive an update notification when you open the application. This is conducive to user updates.
Many people want xcode to provide corresponding APIs to find the application
Open Source Address: https://github.com/robbiehanson/CocoaAsyncSocket/wiki/Intro_GCDAsyncSocket
How to Use: see the specific instructions under the website.
Encapsulated code;
//// Clientsocket. h// Gameclientengine//// Created by Chao Zhang on 12-2-
Calayer (layer) is a rectangular area on the screen. Each uiview contains a root calayer. All the visual effects on the uiview are performed on this layer.
Calayer shape features mainly include:
1. layer size and size
2. Background Color
3. content
IOS serialization and deserialization
Opening
1. What is the purpose of serialization?
An object-oriented program creates a complex object graph during running. It is often serialized in binary mode. This process is called archiving. binary streams
Some time ago, I went online to find out how to release the memory. However, you cannot find it. Today, I am continuously testing and viewing the parent window of the view.
Nslog (@ "% @", self. View. superview. superview );
At this time, I found
During application development, the page needs to be loaded when loading data. If it is useless, there is a lack of human design. The system comes with the uiactivityindicatorview, but it lacks the text description. The loading view to be added with
I recently encountered a problem of time String Conversion during XML parsing of Sina RSS news.
The problem is: Wed, 3 Apr 2013 04:11:02 GMT (this data is obtained in the XML file) to extract 04:11:02 from this string.
Note: For GMT, note that
Method 1: Use the jsonkit Library
1. First download a JSON library from the Internet;
2. Add the Library to the project;
3. The Code is as follows:
Put JSON into a TXT file and nsstring
Nsstring * jsonstring = [nsstringStringwithcontentsoffile:
During the development process, we often encounter a problem: when we select the input box, the keyboard jumps out and overwrites our input box. The problem we need to solve is: move the input box up so that it is above the
This article requires a certain level of core data.
For example, create a project and select a template of the master-detail application type.
Name it mastercoredata. Check use core data and use automatic reference counting.
Test the project on
In the previous several projects, the customer required to use the font, but IOS didn't bring this font.
You can only customize the font. The following are several important steps to customize the font:
1. Download the Font Resource file (. TTF
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