Use of iOS WKWebView -- API

WKWebView is a browser control in WebKit, a framework launched by apple after iOS 8. Its loading speed is much faster than UIWebView, but its memory occupancy rate decreases a lot. It also solves the problem of memory leakage when loading web pages Most current projects only need to be adapted to iOS 8, so it is necessary to replace the UIWebVi ...

Added by digitalecartoons on Wed, 29 Dec 2021 03:07:25 +0200

iOS14+Swift5.x+Xcode12 learning notes - UITableView

brief introduction Table view is a view that displays the contents row by row. Each row is called a Cell. iOS has only one Cell per row by default. Cells support customization. Cells are divided into dynamic and static. Dynamic refers to the automatic generation of cells during program operation. It is generally used when the specific numb ...

Added by phpwizard01 on Mon, 27 Dec 2021 00:23:43 +0200

Summary and Analysis of iOS Multithreaded Interview Questions

Preface In fact, before I wrote this blog, I was also looking up bad materials, but I found that many people on the Internet said that the summary of content was not correct, resulting in a lot of pits for myself, so I want to recapitulate it, make a reference for myself, and also review it. Of course, I may have something wrong, I hope it can ...

Added by alan543 on Thu, 23 Dec 2021 17:17:05 +0200

2 - use line segments to form graphics and coordinate conversion

This article demonstrates how to use the multi line drawing function of Core Graphics to draw the UI of the control through an example of a custom checkbox button. CheckButton First create the CheckButton class: // 1 class CheckButton: ShadowButton { override init(frame: CGRect) { super.init(frame: frame) commonInit() ...

Added by designergav on Thu, 23 Dec 2021 06:37:55 +0200

RAC ReactiveCocoa uses small sets

Foreplay Personally, I highly value ReactiveCocoa. It is like Chinese Tai Chi. Tai Chi generates Liangyi, Liangyi generates Sixiang, Sixiang generates Bagua, and Bagua generates everything. ReactiveCocoa is a highly abstract programming framework. It is really abstract. At first glance, you don't know what it is for. After you use it, you wil ...

Added by mforan on Wed, 22 Dec 2021 23:11:57 +0200

Use and Principles of iOS GCD

GCD In the process of iOS development, we often deal with multithreads, asynchronous drawing, network requests, etc. The ways are NSThread, NSOperationQueue, GCD, etc. Here GCD plays an important role, so write an article about GCD today. First comes the first question: What is a GCD The full name Grand Central Dispatch is a technology for a ...

Added by alexinjamestown on Tue, 21 Dec 2021 12:47:11 +0200

iOS LeetCode ☞ rebuild queue based on height

Suppose a group of people with disordered order stand in a queue, and the array people represents the attributes of some people in the queue (not necessarily in order). Each people[i] = [hi, ki] indicates that the height of the ith person is hi, and there is ki people whose height is greater than or equal to hi in front. Please reconstruct and ...

Added by Darghon on Mon, 20 Dec 2021 13:35:32 +0200

Learn more about Dio's CancelToken from the source code

The previous article talked about the use of Dio's CancelToken. This article analyzes how CancelToken can cancel network requests from the source code. Relevant contents are as follows: Implementation of CancelToken classCancelToken how to cancel a network request CancelToken class There is not much code for the CalcelToken class. We can dir ...

Added by char skd1 on Sun, 19 Dec 2021 21:43:45 +0200

Network programming 6 of IOS development (file upload POST and download HEAD)

NSURLConnection file upload Use POSTContent-Type: multipart/form-data; #define kBOUNDARY @"abc" -(void)uploadFile:(NSString *)urlString fieldName:(NSString *)fieldName filePath:(NSString *)filePath{ NSURL *url = [NSURL URLWithString:urlString]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; //Set post request.H ...

Added by mancroft on Sun, 19 Dec 2021 11:09:57 +0200

Building a Mac environment for fluent

target Build an iOS development environment for Flutter under Mac Basic environment To install and run fluent, your development environment must meet the following minimum requirements: Operating system: MacOS (64 bit)Disk space: 700 MB (excluding Xcode or Android Studio disk space)Tools: fluent relies on the following command line tools ba ...

Added by eazyefolife on Sun, 19 Dec 2021 04:03:57 +0200