Category Archives: IT

YXStackView

UIToolbar is an useful control in UIKit. But after iOS 11 we need to add some compatible code to keep UI layout. Then I found UIStackView can be used as layout. However it doesn’t have some function like UIBarButtonSystemItemFlexibleSpace. So in order to create a container view supporting flexible space, I wrote YXStackView. The github… Read More »

An Amazing Class: NSProxy

NSProxy is a root class in Objective-C. yes, NSObject is not unique root class. From the definition of NSProxy we can think NSProxy as a simplified NSObject. It just implements protocol. As an abstract class, the methods need to be implemented by subclass. One of them forwardInvocation: is the most key method of this class,… Read More »

Method in Objective-C : Message Passing

Method in Objective-C : Message Passing What is Message Passing? At previous post I mentioned Method Swizzling, that refers some knowledge about message passing. So this post I decide to talk about it. We know invoking an instance method called Message Passing in Objective-C. For example: NSMutableArray *array = [NSMutableArray array]; [array addObject:@”hello world!”]; array… Read More »

Talking about Aspect Oriented Programming in iOS

1. What’s the Aspect Oriented Programming? The Apsect Oriented Programming (AOP) is usually used in backend development. But it’s more and more popular in clients programming recent days. You can find out the definition in Wikipedia: In computing, AOP is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns.… Read More »

How to improve live video streaming?

1. How live video streaming works? There are these key parts in basic streaming process: Caputure or media resource Broadcaster Source server Recorder for playback Content Delivery Network (CDN) nodes Player Clients The process of live video streaming: The broadcaster (smart phone, OBS or other device) puts streaming from caputure or media resource to source… Read More »