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
Step by step teach you how to mount iOS apps
Step 1: Download/create a certificate and assign it to a certificate. If yes, download it directly. If no, click the plus sign in the upper right corner to create a certificate. The specific new content
ARC-do not send messages to released objects. arc-release sends messages.
1. Write the following code in AppDelegate. m:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //
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 --- solve the problem that all interfaces in RESideMenu can slide sideways
RESideMenu is an easy-to-use slide layout class library in iOS. This type of Slide effect is used in many iOS projects.
You can add menu view controllers on both left
KVO removes class coupling through KVO.I. Overview
KVO, that is, Key-Value Observing, provides a mechanism. When the attribute of a specified object is modified, the object will receive a notification. In short, KVO automatically notifies the
OC Syntax: KVC and KVO, ockvckvo
1. Key-Value Coding (KVC)
KVC refers to NSKeyValueCoding, an informal Protocol that provides a mechanism to indirectly access object attributes. KVO is one of the key technologies based on KVC.
An object has certain
Ios implements the shake Function
You must have used the shake function ~ The ios SDK helped us complete all the work. We only need to add the corresponding logic.
The following is the implementation code (Add the following code to the
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
Stop interaction in IOS-UIView
UIView stop interaction (no focus ):Set userInteractionEnabled = NO to get the interaction settings YES.It can be applied to custom controls such as UIButton and UITextField.
[editButton
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:
UITableView simple performance optimization, uitableviewThe memory of iOS devices is limited. If you use UITableView to display thousands of data records, you need thousands of UITableViewCell objects, which consumes the memory of iOS devices. To
What is the possibility of a control invisible to the naked eye ?, Invisible to the naked eye
1. This control is not instantiated at all.2. No dimension is set.3. The color of the control is the same as the background color of the parent control
[Learning notes] [OC language] class method, learning notes oc Language
1. Basic ConceptsMethods that can be directly executed using class names (Classes occupy storage space in the memory, including the class \ object method List)
2. Comparison
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
IOS system Message notificationI. keyboard1. UIKeyboardWillShowNotification-the keyboard to be displayed2. UIKeyboardDidShowNotification-display keyboard3. UIKeyboardWillHideNotification-to hide the keyboard4. UIKeyboardDidHideNotification-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