ios develops cocoa AsyncSocket and protobuf using swift 5 version, including sticky package and unpacking

Recently, I did some instant messaging. In order to cooperate with the use of the server (netty 4 + protobuf3), I played a trick on the ios client. protobuf is less used in ios client, less used with cocoa AsyncSocket and less swift version. In the swift version, there is almost no data for protobu ...

Posted on Thu, 08 Aug 2019 21:51:28 -0700 by rayden

Unity AR Foundation and CoreML: Implement hand detection and tracking

0x00 Preface Unity's AR Foundation Through the upper abstraction, the bottom interfaces of ARKit and ARCRore are encapsulated, thus enabling the cross-platform development capabilities of AR projects. Apple's CoreML is a framework for integrating machine learning models with app s on the iOS platform. This article, along with the demo projec ...

Posted on Wed, 24 Jul 2019 16:59:26 -0700 by julia k

iOS Cocoapods Creates its own Cocoapods Common Library Components

iOS Cocoapods Creates its own Cocoapods Common Library Components Registration of CocoaPods Account Information Creating a pod library follows these steps Registration of CocoaPods Account Information Open the terminal, create an open source pod library, need to register CocoaPods pod trunk regi ...

Posted on Tue, 23 Jul 2019 20:36:43 -0700 by Ralf Jones

Connection, Control, Data Transfer (Swift) between the iPhone and iWatch

Recently, in a project involving the transmission of data and the control of interface jump between the iPhone devices and watches, I searched a lot of information on the Internet, and found that the domestic websites were not introduced much, while the foreign websites were not very complete, so I am writing this blog here to give you a refere ...

Posted on Sun, 14 Jul 2019 14:52:01 -0700 by dmcentire

Shocked, you may not know the new features of Swift 3.1

Apple recently released Xcode 8.3 and a small version of Swift 3.1. But don't worry, Swift 3.1 and Swift 3 are compatible, which won't cause too much trouble for your Swift 3 project. Unfortunately, Xcode 8.3 ruthlessly removes support for Swift 2.3, so if your project is using pre-3.0 versions, I recommend that you don't rush to update it. fai ...

Posted on Sun, 07 Jul 2019 17:17:56 -0700 by AngelG107

Record a technical survey: iOS applications implement gRPC calls

problem In the development of mobile applications, the complex business logic layer is usually implemented on the server side, while the client is only responsible for the presentation layer. But for some mobile applications, it is not safe or unreasonable to implement business logic on the server side. Instead, it is necessary to implement b ...

Posted on Fri, 05 Jul 2019 12:25:59 -0700 by edawson003

Study on Compatibility of Swift Library Binary Interface (ABI)

This article is from a short book with the original address: http://www.jianshu.com/p/5860f5542f21 Preface In the process of Aliyun APP componentization, we have separated several base component libraries and business code libraries. Because the code is written in Swift, these libraries are in the form of dynamic libraries.In the last off ...

Posted on Tue, 02 Jul 2019 09:07:37 -0700 by fangorn

iOS Practice: Completing the Roller Coaster through Core Animation

Huh, finally today to the last one, also drunk, for two or three months. From the beginning, I only planned to write three articles. As a result, I wasn't sure about it. It added up to what I am today. Because the content added is too much, it almost becomes eunuch, but fortunately, it has not given up on itself. So everyone is good. If you loo ...

Posted on Sat, 29 Jun 2019 15:18:48 -0700 by Yucky

How Swift Creates Namespaces

Compared with OC era, Swift can achieve almost the same effect as namespace through ingenious methods. demand Now we want to add an extension to the UIColor class to generate the image UIImage based on its own color.In an era of no namespace, the result may be as follows: let image = UIColor.blue.image Or to avoid having the same name as other ...

Posted on Fri, 28 Jun 2019 16:04:58 -0700 by jdeer0618

Swift Learning Notes Chapter 6 (Classes, Attributes, Methods)

Class Definition We use keywords class and struct to represent classes and structures respectively, and define their specific contents in a pair of braces. /* class SomeClass { // class definition goes here } struct SomeStructure { // structure definition goes here } */ Commonalities between classes and structures /* 1. ...

Posted on Wed, 19 Jun 2019 16:03:38 -0700 by osram