libflexible source code reading
Preface
Recently, we need a mobile product. We need to catch up with the time limit. We are referring to the flexbox layout and hand-picked of Skycat.After rem layout, libflexe was chosen. After finishing the project, I decided to take a look at libflexe with a little spare time.How to dynamically set the font of the root element to change the ...
Posted by iShaun on Wed, 10 Jul 2019 17:37:38 -0700
iOS AFNetworking Framework HTTPS Request Configuration
iOS, under Apple's mandatory requirements, data transmission must be in accordance with the ATS(App Transefer Security) clause. About AFNetworking Framework Transfer HTTPS Data.
I. NSAllows Arbitrary Loads Whitelist Mechanism
NSAllows ArbitraryLoads is a product of ATS promotion, and of course it can last a long time. To bypass ATS, you ne ...
Posted by sfx81 on Wed, 10 Jul 2019 15:25:12 -0700
[cocos 2DX 3.0 + ios] How to write iAd s plugin
Links to the original text: http://www.cnblogs.com/KevinYuen/p/3704717.html
Cocos 2dx3.0 contains plugins for promotion, revenue and other aspects of third-party plugins, but there is no support for iAds, probably because it is exclusiv ...
Posted by mickro on Wed, 10 Jul 2019 14:41:44 -0700
"BZOJ1669" D Hungry Cattle [Usaco2006 Oct] Hungry Cows Bull Holiday Team Competition 5 (LIS, discrete tree array)
Links: https://ac.nowcoder.com/acm/contest/984/D
Source: Niuke.com
Hungry cattle
Time limit: C/C++ 1 second, 2 seconds for other languages
Space limitations: C/C++ 32768K, other languages 65536K
64bit IO Format: %lld
Title Description
Farmer John has N (1 <= N <= 5,000) cows, each with a positive integer number of no more than 32 binary d ...
Posted by dude81 on Wed, 10 Jul 2019 10:28:02 -0700
iOS-Complete Construction of Live Broadcasting Steps and Specific Implementation
Preface
Good memory is not as good as bad writing. Recently, I have had some time to sort out some knowledge, and then I will write some summaries one after another. Start with this less familiar audio and video section. 2016 is the first year of live broadcasting. This technology is no stranger. Later, I realized that I started to learn recent ...
Posted by wardo on Mon, 08 Jul 2019 16:17:36 -0700
Dry Goods Trilogy of Objective-C Advanced Programming (2): Blocks
Objective-C Advanced Programming: iOS and OS X Multithreading and Memory Management
This chapter explains Block-related knowledge. Because the author converted Objective-C code into C++ code, it was very hard to read it for the first time, and I don't remember how many times I read it myself.
This summary is not only the content of this book, ...
Posted by eazyefolife on Mon, 08 Jul 2019 12:49:53 -0700
IQ Keyboard Manager usage causes UI Navigation Controller navigation controller to shift abnormally
The IQ Keyboard Manager component facilitates the switching of multiple edit controls. But in use, there is also a problem that can cause UINavigation Controller to move.
The problem can be solved by setting "self.view = [[UIScrollView alloc] initWithFrame:self.view.bounds]". But I don't know which version to start with.
(Now I'm us ...
Posted by wannasub on Sun, 07 Jul 2019 18:57:13 -0700
Two Realizations of Mobile Phone Photo Preview
Mobile phones take pictures and set pictures to specific sizes. We found some information on the Internet. We can use HTML 5 as a native way or plug-in. Now we can implement them in two ways.
Native mode is mainly used for FileReader
The instance of FileReader has four methods, three of which are used to read files, and the other is interrupt ...
Posted by gwydionwaters on Sun, 07 Jul 2019 16:32:17 -0700
Luogu P2704 [NOI2001] Artillery Position (State Compression DP+Optimization)
Topic Description
Command generals plan to deploy their artillery units on the NM grid map. A NM map consists of N rows and M columns. Each grid of the map may be mountain (represented by "H") or plain (represented by "P"), as shown below. At most one artillery unit can be deployed on each plain terrain (artillery units cann ...
Posted by cspgsl on Sun, 07 Jul 2019 13:51:07 -0700
Swift: Variable parameters
From: https://addicechan.github.io/...
In Swift, when naming a method parameter, you can use Variadic Parameters directly if you have more than one specific type of parameter. Official Document Links
Using variable parameters is actually very simple. That's to add... to the parameter type. For example, Int... In fact, if the parameter is called ...
Posted by thiggins09 on Fri, 05 Jul 2019 15:43:21 -0700