First involved in Runtime (1), first involved in runtime
Objective-C is a dynamic language, and many things are determined by runtime.
For example, the code first declares that testObject is an NSString, then creates an NSData Object, and saves the
IOS local persistent StorageCurrently, there are many methods for local storage, which are commonly used in the following ways: 1. The temporary cache refers to the temporary cache. The temporary cache is generally used to manage the content that
Solution to application startup failure during iOS debugging, ios debugging
I recently used a third-party application in the iOS project to start my application. the following error occurs when I started my application with a third-party
Enumeration of basic IOS data types and IOS Data Types
Enumeration is a basic data type in C language. By enumeration, you can declare a group of constants to represent different meanings. It is actually a set of Integer constants.
Enumeration is a
[Reading Notes] iOS network-asynchronous request and running cycle, Reading Notes ios
Asynchronous requests need to run a loop. When data is transmitted to the server or received by the client, the running cycle is used to implement communication
The height of UITableViewCell calculates the height of uitableviewcell from the beginning of chaos to the intersection of Heaven and Earth.[Original] UITableViewCell height calculation from chaos initial to Tianji jiaotai
This article is based on
XML data parsing (system method) and xml data parsing method
XML is a self-describing data exchange format. It is a very important data exchange format and has been used in various computer languages for many years. XML is similar to HTML, and has a
[Reading Notes] iOS-reference count, Reading Notes ios-count
Cocoa uses a technology called reference counting, which is sometimes called reserved counting. Each object has an associated integer called its reference counter or retention counter.
OC basics-self keywords, oc-self keywords
Use of Self:
1 self cannot leave the class and leave the class without any meaning
2. self automatically classifies methods and object methods.
3. When using self, you only need to pay attention to the
IOS project development practice-learn to use the TableView list control (3) Understand Section
In the list control TableView, Section can be used to separate cells with different functions. Section is used in the following iPhone settings interface.
IOS NSFileHandle, iosnsfilehandle
NSFileHandle is mainly used to read and write the file content.
NSFileMange is mainly used to perform operations on files and obtain file information.
Common Handling Methods
+ (Id) fileHandleForReadingAtPath :(
For IOS basic, set the APP name, setting icons, and adding images waiting for loading,
1. The default name of our app is our project name, so we usually change a more friendly name. The change method is as follows:
Find the InfoPlist. strings
Add watermarks for iOS photos and for iOS photos
During the project, we need to mark the photos to prevent image theft by others. Therefore, we need to add a watermark to the photo to indicate its uniqueness.
Adding a watermark is not to add several
NSArray sorting methods
/* In general, arrays commonly used in OC are sorted by sortedArrayUsingSelector: sortedArrayUsingComparator: sortedArrayUsingDescriptors: * // * 1. sortedArrayUsingSelector, you can use sortedArrayUsingSelector: method. The
CALayer knowledge: Create a rounded corner image layer with a shadow effect and a custom painting content layer,
The effect is as follows:
KMLayerDelegate. h
1 #import 2 3 @interface KMLayerDelegate : NSObject4 5 @end
KMLayerDelegate. m
1 # import "
[Learning notes] [OC language] set Method and get method, learning notes ocsetget
1. Use Cases of the set and get Methods@ Public members can be assigned a value at will. The set and get methods should be used to manage member access (such as
How to Create a proxy in Objective-C and create an objective-c
First, we need to create a class. In order to facilitate understanding, we will simulate finding an intermediary to rent a house in real life. Therefore, we need to create a Person class
Learning 8_KVC and dictionary Conversion Models for ios
Key Value Coding is a standard component of cocoa. It allows us to access attributes by name (key). In some cases, the code is greatly simplified, which can be called the big trick of
Encapsulation, inheritance, polymorphism, and Objective-C polymorphism in objective-c
Advantages of encapsulation:
Benefits of inheritance:
Notes for inheritance:
Inheritance and combination:
1 @ interface Score: NSObject 2 {3 int _ cScore; 4 int _
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.