1. introduction Runloop is part of the thread-related basic framework and is used to plan event processing. When there is a task, Runloop will let the thread process the task, when there is no task, Runloop will put the thread in sleep state.Runloop
In iOS development, deleting files under the Documents directory in Sandbox may be a common operation. Below is some of my encapsulated code:
-(Void) viewDidLoad {[super viewDidLoad]; NSString * fileName = @ "test"; NSString * filePath = [self
About NSURLSession upload and download
After IOS7.0, Apple released a new NSURLSession to replace NSURLConnection. NSURLConnection is executed in the main thread by default. The NSURLSession is executed on other threads. This article mainly
: Data is stored in an archive format. The data object must comply with the NSCoding protocol, and the class corresponding to the object must provide the encodeWithCoder: And initWithCoder: methods. The previous method tells the system how to encode
. With the introduction of the following functions, you can easily shake the device when the tester encounters a BUG, and then automatically save it to the sandbox of the application. After saving it to the sandbox, you can customize a problem
1. Development Platform path:
/Developer/Platforms
There are generally three directories in this path: mac, simulator, and iphone.
MacOSX.platform iPhoneSimulator.platformiPhoneOS.platform
Each directory contains a/Developer/usr/bin directory,
1 Preface
We have learned so many design patterns before, all of which are used to improve the "reusability" and "scalability" of software systems. Today, let's take a look at the architecture design of IOS applications.
Reprinted please indicate
Source:
In batch production of analyst apps, the basic functions of this app are the same, but the application names, icons, and identities of different analysts are different (this unique identity is required to request data ).
Solution:
The
Without a doubt, we have never liked storyboards like this. Since iOS 5, Apple has provided the storyboard editor in its new IDE version and "upgraded" its Object Library, especially UITableView, In the storyboard editor. In addition to providing
IPhone/iPad development Simulator screenshots
Command + Shift + 3Capture entire screen and save as a fileCapture the entire screen and save the png file to the desktop
Command + Control + Shift + 3Capture entire screen and copy to the
0. preface during project development, we often encounter that the basic space in some View is the same, but the data is different. In this case, we can use xib to encapsulate this View for multiple reuse, (For example, TableViewCell with fixed size
: It is to pass the value of the first interface to the second interface for display. Its simple implementation method is as follows:
// Create the second VCTRsceondViewController * sceondViewController = [[TRsceondViewController alloc]
I have always wanted to study coreText. Now I have the opportunity to record it.
VcD4KPHA + examples/fOqtK7uPbV + examples + MO/0NC/examples + examples/examples + 4 LXItcjQxc + ioaM8L3A + examples/OhoyAyoaLJ + examples
The Singleton mode is simple and often mentioned in interviews, so it is placed in the first place.What is Singleton mode?
Singleton, literally, means that the entire application can only create or have one instance.Why is Singleton mode required?
1.
1. Starting from block iOS SDK 4.0, Apple introduced the block feature. Literally, a block is a code block, but its magic is that parameters can be passed during inline execution (similar to C ++. At the same time, the block itself can also be
The problem that the address book cannot be read in IOS7 is that the system version is not determined to construct ABAddressBookRef.
The following are two methods in two programs. For more information, see. All versions have been tested.
// Obtain
1. Image View
// Find the image
UIImage * pImage = [UIImage imageNamed: @ "sea.png"];
// Create an ImageView Based on the Content Image
Self. pImageView = [[UIImageView alloc] initWithImage: pImage];
// Place the ImageView to the parent View
[Self.
In Apple's official introduction, we can see an understatement: "The _ cmd variable is a hidden argument passed to every method that is the current selector ", in fact, _ cmd indicates the selector of the current method in the Objective-C method,
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