Exploration of IOS automation -- using Bluetooth to realize Tap operation of XCUITest
The original text was published by natural growth in the TesterHome community, click Original link Can communicate directly with the author.1, ForewordWhen using the ios devices of WeTest and Testin remotely, you will always feel that the operation is not smooth, because the mobile phone will Move only when you release the mouse. It should be ...
Posted by herbal_lavender on Thu, 10 Mar 2022 08:02:12 +0100
runtime and memory management of iOS
runtime and memory management of iOS
What is it?
To understand what runtime is, the description of official documents should be the most authoritative. The official definition is as follows: from compilation time and link time to runtime, Objective-C language will postpone decisions as much as possible. Whenever possible, it performs operatio ...
Posted by nschmutz on Tue, 08 Mar 2022 20:46:54 +0100
How to compress a picture gracefully
In normal development, we often receive such a demand: before uploading pictures, we need to compress the pictures to less than 100KB and make them as clear as possible.
As an intuitive developer, we immediately divide three into five and get a compression factor:
NSData *imageData = UIImageJPEGRepresentation(image, 0.8);
(Why not UIImagePNGR ...
Posted by CodeMaster on Tue, 08 Mar 2022 17:31:40 +0100
Apiccloud platform uses rongyun module to summarize and share the practical experience of audio and video calls
Demand summary: realize video dialing, answering, hanging up, video interface size window and click small window to realize the exchange of size window.Implementation idea: after one party dials, the other party should be able to receive the corresponding event and then answer. When connected, render the video picture of the other party. When w ...
Posted by merebel on Tue, 08 Mar 2022 13:23:22 +0100
iOS - calling Face ID and Touch ID in application
Note that many non-native iOS applications call Face ID in the application to assist login and confirm privacy operations. Here is how to call Face ID or Touch ID.
Get user privacy
Similar to calling location and camera, first in info Add Face ID permission in plist
Privacy - Face ID Usage Description
Import header file
Import library fil ...
Posted by liquorvicar on Sun, 06 Mar 2022 04:52:17 +0100
Development of IOS -- Network HTTP request
I. overview
Several concepts in HTTP network requestSend HTTP request in IOSHTTP request example
II. Several concepts in HTTP network request
2.1 URL
What is a URL
The full name of URL is Uniform Resource LocatorThrough one URL, you can find the only resource on the InternetURL is the address and location of resources. Each resource on t ...
Posted by Brakanjan on Thu, 03 Mar 2022 17:47:39 +0100
Product Manager: "click here, I want to jump to any page I want to jump" -- decoupling efficiency artifact "unified jump routing"
1. BackgroundWe know that the front-end domain locates the page according to the origin. To jump to the corresponding page, you only need to access the corresponding route, which is very convenient. However, there has been no concept of routing in iOS. To jump to a page, you need to create an instance of the target page, and then jump through t ...
Posted by rlafountain on Mon, 28 Feb 2022 07:48:33 +0100
Object oriented advanced level
1. Inherit //getter method, //The function is to assign the attribute passed in by the constructor to the encapsulated attribute in this class through the getter method, //Then the assigned attribute is sent out through the constructor //setter method, //The function is to call the setter method in this class through the calling method in other ...
Posted by canobi on Sat, 26 Feb 2022 05:18:32 +0100
A lightweight event delivery tool between iOS views
preface
A long time ago, I saw a summary article about the responder chain and event processing mechanism based on iOS. The comment said that simple UI event processing can be carried out through this mechanism. At that time, I didn't care much and didn't have a deep understanding. Later, when I summarized this piece of content, I wrote such a ...
Posted by jimdy on Mon, 21 Feb 2022 17:24:06 +0100
Analysis of underlying principle of NSObject
NSObject is the root class of most class hierarchies in Objective-C. usually, when using NSObject objects, we will use [[NSObject alloc] init] or [NSObject new] to create object instances. Through this article, we will study the object creation process of NSObject together.
initialization
Call alloc mode
When we call the [NSObject alloc] ...
Posted by dotMoe on Mon, 21 Feb 2022 12:14:35 +0100