Tag Archives: iOS

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 »