ARC-Xcode detection cycle reference, and arc-xcode detection reference
1. Create a project on the desktop and enter the following code in ViewController. m:
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading
Knowledge Point of NSSet and NSMutableSet in IOS collection, nssetnsmutableset
NSSet is not much different from NSArray in actual application, but if you want to find an element in NSArray, You need to traverse the entire array, which is
IOS KVC (Key-Value Coding)Common usage: Getting valuesValueForKey: valueForKeyPath based on the property name:[Person valueForKeyPath: @ "car. price"]) ValueForUndefinedKey throws an exception by default. You can rewrite this function for error
IOS timestamp string NSdate conversion demo
1. In projects, we often need to convert the time format. The following is my encapsulated NSDate + TimeCategory, hoping to help you.
# Import
@ Interface NSDate (TimeCategory)/*** convert string
IOS-Get UITextField input text
When the UITextField text changes, update the data based on the content by writing the listening event.Add a listener:
[TimesField addTarget: self action: @ selector (textFieldDidChange :) forControlEvents:
Select an item from the drop-down list.
Click the buttons in the menu on the right, and select one from the pop-up list. Respond to the corresponding event and display the text in the menu on the right. The drop-down effect is LMDropdownView, you
IOS-event handling for controls responding to user control eventsNot all objects in iOS can process events. Only objects that inherit UIResponder can receive and process events. We call it "responder object". UIApplication, UIViewController, and
19th-day notes (Protocol-protocol) and IOS-Protocol
Knowledge points of IOS Learning (oc language)
1. Introduction to Protocols1) concept: a protocol refers to an interface object negotiated between multiple objects. The Protocol provides some
Common Properties and methods of UIView for iPone Application DevelopmentIPone Application Development UIView common attributes and Methods common attributes alpha view transparency 0.0f-1.0f backgroundColor view background color set of subviews
Simple use of multithreading and simple use of Multithreading
Simple use of NSOperationQueue:
1. Create an NSOperationQueue object
2. Create an NSOperation object
3. Add operation to NSOperationQueue
MRC needs to be manually released
4. release
NSOperation for iOS multi-thread programming
There are two NSOperation methods:
1>. NSInvocationOperation: creates an operation and points it to the executed code segment with selecter.
2>. NSBlockOperation: Create an operation and place the
IOS stage study 13th days notes (polymorphism), ios 13th days
Knowledge points of IOS Learning (oc language)
I. Polymorphism
1) popular understanding of polymorphism, that is, multiple forms of a method.
2) compatibility with polymorphism
IOS stage learning 15th-day notes (NSArray and NSMutableArray arrays), iosnsarray sorting
Knowledge points of IOS Learning (oc language)
1. array in OC1) array: it is also an object. The address of the object is stored in the array, and the address
NSLayoutConstraint basics for Automatic Layout of IOS pagesBefore using AutoLayout, you need to know the following two points: 1. You must set translatesAutoresizingMaskIntoConstraints to NO. 2. For viewControl, AutoLayout adaptation is written in [-
IOS control UITextView achieves placeholder effect and solves UITableView keyboard occlusion
At ordinary times, there are always multiple lines of text in development, and there must be a placeholder prompt. You can organize some code in the project
[Learning notes] [C Language] macro definition, learning notes
1. macro definition can be divided into two types:Macro definition without ParametersMacro definition with Parameters
2. Definition
General Form# Define macro name stringFor example, #
IOS calculates the UITextView height based on the string
IOS calculates the string height. For more information, see.
Method 1: applicable before ios7.0
/** @ Method: Get the specified width and width, fontSize, the height of the string value @
IOS Development Database (SQLite)Advantages of SQLite embedded database:1. Embedded Database2. Support events, no configuration, no installation, no administrator3. Supports most SQL92 standards4. The complete database is stored in a file on the
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