ios: life cycle, AppDelegate and SceneDelegate

AppDelegate explain Open the main.m file of your app and you can see // UIApplicationMain is mainly responsible for initializing application objects from a given class name, initializing an application delegate from a given application delegate class, starting the main event loop, and starting to receive events // The third parameter pri ...

Posted on Mon, 22 Nov 2021 22:45:57 -0500 by XtacY

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