Deep copy and light copy in OC, oc copy
The definitions of deep copy and shallow copy have always been controversial.
One understanding is:
The so-called shallow copy is an incomplete copy.
NSString * s = @ "123 ";
NSString * s1 = s; // copy
Objective-C note string operations, objective-c string
In this summary, there are some operations on strings in OC.
When a String object is created, an object whose content cannot be changed is created, which is called an immutable object. You can
IOS image resources Images Assets, iosassets
1. Click and openImages. xcassetsTo see what is happening:]:
2. In the figure, we can see that there are two dashed boxes in the middle. We feel that we can drag the file in directly. OK, prepare the
[Code notes] fade out and fade out
I ,.
2. Engineering Drawing.
3. Code.
ViewController. h
#import @interface ViewController : UIViewController@end
ViewController. m
# Import "ViewController. h "@ interface ViewController () @ end @
Implementation and use of Singleton in iOS
Singleton is the most common design pattern in our development, as well as in iOS. A singleton ensures that the instance of a class is unique in the program, facilitating sharing of resources and data. The
PopupWindow implements pulling the menu bar like iOS QQ music (supports gestures and click operations)If you are an expert, you can ignore N2. The source code is at the bottom.
This morning, a friend from the Andorid group asked me some questions
The usage and precautions of common files in the project.
1. PCH file:
/*********** _ OBJC__BEGIN ************/// All content in it can only be used in the. m file or. mm# Ifdef _ OBJC __# Import # Import # Ifdef DEBUG // debugging stage# Define
IOS sharing and ios sharing
In project development, communication between objects is often involved. To reduce the coupling between objects, delegate, icationcenter center, and block methods are used for implementation, you may be familiar with it,
Objc writes data to the plist file of the iOS real machine
However, this does not work for the real machine, because in the real machine environment, the Resources folder of the App in Xcode is not writable. therefore, when the App runs for the
IOS development Note 7: Text, UI interaction details, two animation effects, etc., iosui
Text mainly summarizes some issues related to UILabel, UITextField, UITextView, UIMenuController, and UIWebView/WKWebView.
UI details mainly summarize some
IOS reminds users to go to the settings page to re-authorize notification locating and other functions, ios notification
The least unknown feature of iOS 8 and later versions is the deep link with application settings, you can authorize the location,
Multithreading for iOS development-thread status and multithreading for ios development
Multithreading for iOS development-thread status
1. Brief Introduction
Thread creation:
Self. thread = [[NSThread alloc] initWithTarget: self selector: @
UIResponder introduction, uiresponder
This UIResponder class defines the object interfaces for responding to and processing events. It is a superclass (UIWindow) of UIView and UIApplication ). Instances of these classes are sometimes called response
The iOS adaptation old project cannot be displayed normally under iOS9, iosios9
In iOS development, old projects, such as version upgrades and Demos, are often used,
The iOS SDK is constantly upgraded, which brings new vigor to iOS development.
NSProxy, nsproxynsobject
The NSProxy class is very important in the distributed object architecture. Because of its special functions, NSProxyCocoaThe frequency of appearance in the program is very low.
NSProxy is an abstract class that defines a
Bug resolution record on iOS default Chinese Input Method garbled, iosbug
When I write a Blog for the first time, I will record a problem that occurred in the project today.
In a text box, convert it to a Chinese input method, and then start the
Introduction to iOS third-party libraries and XCode plug-ins, and ios third-party xcode plug-ins
Third-party libraries are what programmers can't do without. Not only is APP development basically used by all commercial projects to third-party
[First time in iOS] The first simple iOS app, first time in ios
This example is from iOS programming (version 4th) and describes how to compile a simple iOS application.
Function: displays a question in the view. You can click the button below the
Several value passing methods (attribute, proxy, block, Singleton, notification) and iosblock between iOS pages
How does the second view controller obtain partial information of the first view controller?For example, lable In the second interface
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