Swift4.0 learning notes (2) - uilabel

1. First, introduce some common geometric elements The CGGeometry class defines the structure of geometric elements and functions that manipulate them. CGFloat: basic type of floating point value CGPoint: represents a point in a 2D coordinate system CGSize: indicates the width and height of a rectangle CGRect: indicates the position and size o ...

Posted by - - NC - - on Sat, 02 May 2020 15:10:11 +0200

CentOS 7.4 installation and deployment openstack [Liberty version]

Next blog CentOS 7.4 installation and deployment openstack [Liberty version] (I) , this part continues to cover the following parts 1, Add block device storage service 1. Service Description: OpenStack block storage service provides block storage for instances. The allocation and consumption of storage is determined by block storage driv ...

Posted by edikasim81 on Mon, 27 Apr 2020 07:21:58 +0200

[Swift 4.0] extended WCDB supports SQL statements

Preface wcdb has been in the pit for two months, which is still very good on the whole. For specific advantages, please refer to the documentation. Because the official specification does not support SQL, we have to write an extension to support it A kind of   statement Welcome to reprint, but please keep the original source of the article:) ...

Posted by bkanmani on Sun, 05 Apr 2020 22:12:30 +0200

Thinking about Swift API design

Reference documents: Official Swift API design specification Explain why the first two methods declare the parameter tag at, and the second method defaults. extension List { public mutating func remove(at position: Index) -> Element public mutating func remove(_ member: Element) -> Element? } Which of the following ...

Posted by d_priyag on Sun, 05 Jan 2020 18:20:36 +0100

About the use of Swift4.0 Method Swizzling(iOS hook mechanism)

There are many posts about the principle of Method Swizzling. It's clear that we won't repeat it here, Only the use of Method Swizzling in swift 4.0 is dealt with here Because the Runtime support of Swift itself is not very in place, especially the method swizzling is very common in OC, but after Swift, it is found that the load method is ...

Posted by KoopaTroopa on Wed, 25 Dec 2019 20:00:41 +0100

ForkJoinPool, or ForkJoin Framework for Java Concurrent Packet Thread Pool

Preface This is the last thread pool implementation provided by Java concurrent packages, and also the most complex thread pool. For this part of the code is too complex, due to limited time, can only be briefly introduced. The Fork/Join framework is actually a task scheduling mechanism consisting of Fork Join Pool as thread pool, Fork Join Ta ...

Posted by pytrin on Sun, 28 Jul 2019 05:41:24 +0200

Write a two-dimensional code generation library with Swift to support adding various strange styles and finding a wave of support~

EFQRCode is a library written in Swift for generating and recognizing two-dimensional codes. It is developed based on generating and recognizing two-dimensional codes of the system. Generation: Using the input watermarking image/icon and other resources to generate a variety of art two-dimensional codes; Recognition: Recognition rate is highe ...

Posted by Petran76 on Sun, 14 Jul 2019 00:52:28 +0200

iOS implements dynamic scaling effect of titleView of Navigation Controller

screenShot.png Write a simple demo in Object-C and Swift respectively. Now let's talk about the simple principle of using Object-C. Knowledge supplement=====> Because I have some problems with tableView contentInset and contentOffset during the implementation of this effect, I would like to explain these two attributes first ...

Posted by mosi on Tue, 09 Jul 2019 22:48:21 +0200

RxSwift Mapping Operator Has Regret

Along the way, I feel that RxSwift is not as obscure and difficult as before. I even gradually like the idea of responsive programming. It takes objects as observable objects and subscribes to them. With the cooperation of filter operators, all logical operations are performed in background threads. This section is about the most powerful funct ...

Posted by twick100 on Sun, 07 Jul 2019 20:56:22 +0200

Research on Swift Object Memory Model (I)

This article is from the Tencent Bugly Public Number (weixin Bugly). Please do not reproduce it without the author's consent. The original address is: https://mp.weixin.qq.com/s/zIkB9KnAt1YPWGOOwyqY3Q Author: Wang Zhenyu > HandyJSON is one of Swift's open source libraries for processing JSON data, similar to JOSNModel, which can directly con ...

Posted by esas_nefret on Sun, 30 Jun 2019 20:38:44 +0200