Sagit.Framework For IOS development framework tutorial 11: controller base class STController

preface: In the Sagit framework, all new controllers and UI views need to inherit from the base class of the framework. This article introduces the base class of the controller: STController STController: basic definition #import <UIKit/UIKit.h> #import "STEnum.h" @class STView; @class STHttp; @class STMsgBox; @interface STController : ...

Posted by ethan89 on Tue, 24 May 2022 17:35:03 +0300

Flutter status management Provider

In fluent, state management is the top priority. Whenever we talk about this topic, there are always endless words. After formally introducing the Provider, why do we need state management. If you already know this clearly, it is recommended to skip this section directly.If our application is simple enough, as a declarative framework, you may o ...

Posted by bickyz on Mon, 23 May 2022 06:06:52 +0300

iOS video development: Video H264 hard coding

preface Series of articles:iOS video development (I): video captureiOS video development (II): Video H264 hard codingiOS video development (III): Video H264 hard decodingiOS video development (IV): popular understanding of YUV data Last iOS video development (I): video capture We have introduced how to collect the video data of iOS camera. Th ...

Posted by stephaneey on Fri, 20 May 2022 18:11:20 +0300

Message forwarding mechanism

1. Dynamic method analysis When an object receives a message that cannot be processed, it will call the following methods. The former will be called when calling class methods, and the latter will be called when calling object methods //Class method call not implemented + (BOOL)resolveClassMethod:(SEL)sel //Instance method call not implemented ...

Posted by hjunw on Fri, 20 May 2022 13:20:56 +0300

iOS Swift No.26 - access control 2

Chapter 26 access control 3. Access Control Syntax Before the entity introducer, we can use these five modifiers (open, public, internal, fileprivate or private) to define the five access levels of the entity. public class SomePublicClass {} internal class SomeInternalClass {} fileprivate class SomeFilePrivateClass {} private class SomePrivateC ...

Posted by zoobooboozoo on Thu, 19 May 2022 16:33:45 +0300

oc -- Foundation framework -- string

Create string NSString represents a string whose character sequence is immutable. NSString is very powerful. oc string processing is much simpler and easier to use than C language characters. NSString has these functions: 🎇 To create a string, you can use the instance method starting with init, the class method starting with string, or the for ...

Posted by kh411dz on Wed, 18 May 2022 02:43:07 +0300

Fluent asynchronous programming - event loop, Isolate, Stream

Event loop, Isolate Before we start, we need to understand that Dart is single threaded and that fluent depends on Dart If you know event loop in js The whole process of asynchronous dart is well understood Let's look at a piece of code first import 'dart:async'; Future eventLoop() async{ print('A'); Future((){ print('F'); scheduleMicrota ...

Posted by WinterDragon on Mon, 16 May 2022 23:21:38 +0300

Event delivery and response mechanism of iOS

Objective: to understand the event transmission process and response mechanism, which can help deal with some gesture conflicts, custom gestures and other problems ###1. Event classification? 1.1 in iOS system, events are divided into four categories: UIEventTypeTouches: touch phone screen events UIEventTypeMotion: mobile phone shaking and ...

Posted by notonurnelly on Mon, 16 May 2022 06:51:57 +0300

iOS image text mixed arrangement

Mixed text arrangement, text click events and text animation (which are not discussed, but can be handled through view). If it is a simple operation, it can be handled with UITextView. When special customization is required, CoreText can be used. It is a powerful text processing framework that supports all customized operations related to text ...

Posted by neverett on Thu, 12 May 2022 14:22:37 +0300

iOS effect processing (inner shadow, outer shadow, outer glow, inner glow, projection)

iOS effect processing (inner shadow, vulva shadow, outer glow, inner glow, projection) Recently, I have encountered some problems in the effect processing. Write an article to record the problems encountered before. Here are two ideas to deal with them. The effect diagram is as follows: First kind This idea mainly adopts Layer process ...

Posted by Andrei on Wed, 11 May 2022 04:13:42 +0300