Data structure of block
preface
Underlying structure of block under Clang analysis
Clang, look at the block
code
int age = 30;
void (^yang)(void) = ^{
NSLog(@"%d", age);
};
yang();
clang
// The existence of isa indicates that block is an object
struct __block_impl {
void *isa;
int Flags;
int Reserved;
void *FuncPtr;
};
struct __main_block_d ...
Posted by Onloac on Fri, 03 Dec 2021 17:35:38 -0800
Flutter - hybrid development
1. Mixed development
Mixed development can be divided into two cases
The fluent project invokes native functionsNative items are embedded in fluent (relatively heavy, not recommended)
2. The fluent project calls the native function
Go back to the previous wechat like my interface to make a function of clicking on the avatar to change th ...
Posted by bobthebullet990 on Mon, 29 Nov 2021 15:09:32 -0800
iOS pixel reading of pictures
Picture decodingThe common image compression formats are mainly PNG and JPEG. In iOS program development, it is generally not necessary to obtain the decoded data of a picture, but if you need to operate on pixels, you may need to know how to obtain relevant pixel values.Bitmap image (bitmap) is composed of multiple pixel arrays. When we decode ...
Posted by agrant on Mon, 29 Nov 2021 02:10:17 -0800
uniapp front end source code (APP + applet + H5)
Open source code is the static part of the source code of the client-side uniapp, which provides learning and use
It can be run by importing hbuilder. At present, it is suitable for applets, Android, IOS and H5
Game type, my information, my request, find the great God immediately
Editor, I want to play the game, I want to find, other requi ...
Posted by alpha2zee on Thu, 25 Nov 2021 16:29:35 -0800
Fluent - life cycle
1. Life cycle
The process of an object from creation to destruction is a life cycle, in other words, a callback method. It has been encapsulated in fluent to know what state the widget is in, and then give you a callback corresponding to the state. Therefore, the life cycle is actually a series of callback methods.
So what does the life c ...
Posted by coffejor on Tue, 23 Nov 2021 04:15:28 -0800
ConstraintLayout 22021Android advanced learning materials
How to customize?
The Helper holds a reference to the view, so you can get the view (getViews) and then operate the viewcallback before and after onLayout (updateprelay / updateprelay) is providedThe Helper inherits the view, so the Helper itself is also a view
CircularRevealHelper
[the external chain picture transfer fails. The source stati ...
Posted by isaacsf on Sun, 21 Nov 2021 00:30:12 -0800
Shuttle snackBar component plug-in
[external chain picture transfer failed. The source station may have anti-theft chain mechanism. It is recommended to save the picture and upload it directly (img-lt6hz7e6-1631582673562)( https://ducafecat.tech/2021/09/14/translation/snackbar-widget-in-flutter/2021-09-14-09-15-10.png )]
original text
https://medium.com/flutterdevs/snackbar ...
Posted by hofmann777 on Thu, 18 Nov 2021 23:19:10 -0800
This may be the most "powerful" memory leak detection scheme in fluent
Author: Wu ZhiweiIn the past two years, Flutter technology has been used more or less in both innovative applications and old flagship applications. However, the most common problem reported by the Flutter business team is that the memory consumption of Flutter is too high.The reasons for the high memory usage of the Flutter are complex, so it ...
Posted by digitalgod on Tue, 16 Nov 2021 20:31:55 -0800
Double diagram of mobile terminal development
Physical pixel & Physical pixel ratio
Physical pixels refer to the smallest particles displayed on the screen, which are physically real. It's set at the factory. (resolution)When we develop, 1px is not necessarily equal to 1 Physical pixelOn the PC side page, one px is equal to one physical pixel, but the mobile side is differentThe numbe ...
Posted by bobc on Mon, 08 Nov 2021 14:26:48 -0800
End development technology - decrypt the responsive layout of the shuttle
Fluent is a cross platform application development framework that supports devices of various screen sizes. It can run on small devices such as smart watches or large devices such as TVs. Using the same code to adapt to different screen sizes and pixel densities is a challenge.There are no rigid rules for the design of the responsive layout of ...
Posted by jburbage on Thu, 04 Nov 2021 11:58:33 -0700