Basic introduction to Swift (15) - properties - let you know

8 tips for TED speech: Learn 18 minutes of efficient expression - key notes Swift basic introduction (14) - class & structure (category and structure) - tell you to understand Understanding difficulty ★★★★☆ Practical degree ★★★☆☆ Property is the value of a specific type (class, structure or enumeration), which can be used in the ...

Posted on Mon, 06 Dec 2021 16:00:50 -0500 by jimlawrnc

Swift skill CGImage To CVPixelBuffer

abstract The Image representation in iOS is not only Image, but also a more underlying way, such as CVPixelBuffer pixel cache. The way that CGImage can be converted to pixel cache also needs to be understood. CGImage Apple's official explanation is a bitmap Image or Image mask. It is an attribute in the UIImage class and can be called an Image ...

Posted on Tue, 30 Nov 2021 09:37:10 -0500 by hillbilly928

KVO principle analysis

introduceKVO, fully known as KeyValueObserving, is a set of event notification mechanism provided by apple. Allows an object to listen for changes to another object's specific properties and receive events when they are changed. Because of the implementation mechanism of KVO, it works on attributes. Generally, objects inherited from NSObject su ...

Posted on Sat, 20 Nov 2021 22:10:38 -0500 by mickey9801

Swift tells you - basic data type (type)

Swift tells you (2) - Variables & constants (Variables & constants) Understanding difficulty★★☆☆☆ Practical degree★★★★★ According to different situations and needs, variables or constants need different types to perform actions. For example, height and weight need numbers with decimal points; Integer is required to calculate the numb ...

Posted on Wed, 17 Nov 2021 07:52:29 -0500 by Skepsis

_02 Strings and Characters

string literal let someString = "Some string literal value" Multiline string literal value let quotation = """ The White Rabbit put on his spectacles. "Where shall I begin, please your Majesty?" he asked. "Begin at the beginning," the King said gravely, "and go on till you come to the end; then stop." """ The following two strings are i ...

Posted on Tue, 12 Oct 2021 12:30:27 -0400 by CG-Sodar

iOS animation - window view (end of 3)

This article is the third in a series. Friends who have read the previous article already know that "view" in the title refers to view and "window" refers to view view.mask , the window view chapter is combing mask and mask animation. If you are not familiar with iOS mask, it is recommended to take a look first Part I. In t ...

Posted on Sat, 27 Jun 2020 22:30:29 -0400 by varghesedxb

"Talk about deep copy and shallow copy"

A: 1. Light copy The reference type of the copy object and the original object refer to the same object. All variables of the copied object contain the same value as the original object, while all references to other objects still point to the original object. In other words, a shallow copy copies onl ...

Posted on Fri, 12 Jun 2020 05:37:07 -0400 by cavolks

How do I make HTTP requests in Swift?

This article is translated from: How to make an HTTP request in Swift? I read The Programming Language Swift by Apple in iBooks, but cannot figure out how to make an http request (something like CURL) in Swift. Do I need to import Obj-C classes or do I just need to import default libraries? Or is it ...

Posted on Fri, 12 Jun 2020 01:59:46 -0400 by aquayle

Anbox source code analysis -- anbox rendering principle (source code analysis)

Anbox source code analysis (3) In the previous article, we introduced the principle of Anbox video rendering. In this article, we started from the source code to have a deeper understanding of the mechanism and principle of Anbox and rendering session manager entry The entry function of session mana ...

Posted on Tue, 09 Jun 2020 03:27:28 -0400 by ScratchyAnt

How to improve the quality of iOS code through static analysis

  With the expansion of the project, it is more and more unrealistic to rely on human codereview to ensure the quality of the project. At this time, it is necessary to use an automatic code review tool: program static analysis.   Program Static Analysis is a kind of code analysis technology that can scan the program code through lexical analys ...

Posted on Tue, 26 May 2020 04:01:28 -0400 by onekoolman