[Programmer Diary] See UIDevice again
The last article introduced UIApplication This is the class that controls the application. This article looks at UIDevice, which is easily overlooked but often needs to be dealt with.
As the name implies, it is equipment. I believe that in our daily development, we will be more or less exposed to some of the things, such as video applications n ...
Posted by heepofajeep on Sun, 07 Jul 2019 00:21:20 +0200
AF Security Policy of AFNet Working Source
1 HTTPS and SSL/TSL
Secure Sockets Layer (Secure Sockets Layer), because the HTTP protocol used on the Internet is plain text, there are many shortcomings, such as transmission content will be peeped and tampered with. The role of the SSL protocol is to encrypt the network connection at the transport layer.
By 1999, because of its wide applicat ...
Posted by toddg on Sat, 06 Jul 2019 01:03:58 +0200
Builder Model of Creative Design Patterns
1 Builder schema concept
1.1 Introduction
Builder pattern is a step-by-step creation pattern for complex objects, which allows users to control the object's construction process more finely without knowing the details of the internal construction. The purpose of this model is to decouple the process of building complex objects from its com ...
Posted by gortron on Fri, 05 Jul 2019 02:36:35 +0200
ScrollView in react native
1. Introduction to ScrollView (official explanation): ScrollView is a general scrollable container in which you can put multiple components and views, and these components do not need to be of the same type. ScrollView can not only scroll vertically (default), but also horizontally (set by the horizontal attribute).
2. ScrollView common attr ...
Posted by Dragoa on Tue, 02 Jul 2019 21:27:35 +0200
Avoid being rejected for respondsToSelector:, performSelector:
Avoid being rejected for respondsToSelector:, performSelector:
Remember that many iOS developers received rejected emails using JSPatch some time ago.
Your app, extension, and/or linked framework appears to contain code designed explicitly with the capability to change your app's behavior or functionality after App Review approval, which ...
Posted by pacuran on Mon, 01 Jul 2019 18:05:31 +0200
Singleton mode in ios
The concept of singletons
A singleton class ensures that there is only one instance object of that class in the application's life cycle and that it is accessible from the outside world.There are many singleton classes in iOS, such as UIApplication,UIScreen,NSNotificationCenter,NSFileManager,NSUserDefaults,NSURLCache,NSHTTPCookieStorage, and ...
Posted by jarcoal on Mon, 01 Jul 2019 01:21:07 +0200
Common Problems about SDWebImage Source Code
SDWebImage.png
analysis
Some time ago, I talked to a young man who asked me:Boy: "What modification does NSString use when declaring attributes?"Me: "copy"Boy: "Why copy? What's wrong with strong?"Me: "If you use strong modifier, you just make a shallow copy of the string. When an object holds this property, ...
Posted by grandeclectus on Sun, 30 Jun 2019 01:38:08 +0200
Lifecycle of iOS applications
Whether it's learning object C or other languages, the first thing we need to know is how the language works in the program and how the life cycle is. Learning about iOS mobile phone development, we need to understand the life cycle of iOS program. Now let's understand the life cycle of iOS program iOS.
The entry program of iOS program is the ...
Posted by reflash on Fri, 28 Jun 2019 02:40:52 +0200
Dude, where is my method?
Links to the original text: Dude, Where's my Call?The original chain of the translation: Dude, where is my method?
Imagine one day you're feeding some seemingly harmless code to the Swift compiler.
// xcrun -sdk macosx swiftc -emit-executable cg.swift
import CoreGraphics
let path = CGPathCreateMutable()
CGPathMoveToPoint(path, nil, 0.0, 23.0) ...
Posted by theorok on Fri, 28 Jun 2019 01:12:24 +0200
XAspect Learning Summary
http://www.jianshu.com/p/bb0374ec3e7e
Aspect is a lightweight library for facet-oriented programming.It allows you to include any code in the methods that exist in each class and instance.
First, give the github address: XAspect , the original description, you can see README in the project, or a detailed description Documents Or this article ...
Posted by rReLmy on Wed, 26 Jun 2019 18:28:51 +0200