Understanding of OC polymorphism and oc Polymorphism
Key points:
1. Multiple forms, multiple types of referencesA referenced variable can point to any class object.For a reference to a parent class (there is an inheritance relationship between the
Use Touch ID fingerprint to unlock and use Touch ID fingerprint to unlock
Touch ID is a new feature added after iPhone 5 s, which is a well-known fingerprint recognition technology. In most cases, you may need to perform screen decoding on your
The difference between new and alloc/init in iOS development, iosnewallocinit
[ClassName new] is basically equivalent to [[className alloc] init];
The difference is that zone is used when alloc allocates memory.
What is this zone?
When
Cascade interface (recommended Interface) construction principle and interface construction
I. Overall Layout1. for project requirements, click cell on the left and cell data on the right. 2. it is troublesome to set up 2.1 on the interface
AFNetworking 3.1, afnetworking3.1
I heard that the AFHttpWorking version may affect Apple's review. Today, the latest version of AFHttpWorking is released and simple encapsulation is made. Here I downloaded two tools through cocoapods.
1 =
Use of NSUserDefault and NSUserDefaultUse of NSUserDefault
NSUserDefaults is used to store small data such as user configurations.
1. Create an NSUserDefaults object
NSUserDefaults * userDefault = [NSUserDefaults standardUserDefaults];
2. After
Git (use of branches on osChina), gitoschina
There are two ways to create an osChina Branch:
1. directly create on osChina
Pull is required. Otherwise, check that the git status does not include the change branch;
Git pull
2. Use the git
NativeH5 solution for Native interaction with H51. Directly load pages in native code1. Specific cases
Loading local/network HTML5 as function overview page2. Sample Code
// Local
-(Void) loadLocalPage :( UIWebView *) webView
{
NSString *
Custom flow layout (basic use of UICollectionViewFlowLayout) and flowlayout vertical layout
The final displayed
Ideas:
1. Basic settings of UICollection, and create a class inherited from UICollectionViewFlowLayout. (It cannot be
Git (add existing projects to osChina), gitoschina
Add existing projects to osChina
Create a project in osChina
Do not initialize the project.
The project is basically empty now, and the remote address of the Project is obtained.
Find an
Basic knowledge of IOS development-fragment 43 and basic knowledge of ios-43
1: Add a gesture to draw the left, and modify the coordinates of one of the Views. The menu is hidden and displayed.
@property(strong,nonatomic)UISwipeGestureRecognizer
Simple encapsulation of UITextField and uitextfield Encapsulation
Simple UITextField Encapsulation
Effect
Source code
UITextFieldView in https://github.com/YouXianMing/UI-Component-Collection
/// UITextFieldView. h // UITextField /// Created
Processing of in iOS development, and processing of null in ios development
During iOS development, data is often required to communicate with the server. JSON is a common and efficient and concise data format.
Problem:
In the project, the program
[Code Note] Loading, code note
I ,.
Ii. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. [self showFooter: YES];}-(void) showFooter :( BOOL) showFooter {NSLog (@ "pull up Refresh: load more views");
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