The only way to circumvent dynamic binding is to get the address of a method and call it directly as if it were a function. This might be appropriate on the rare occasions when a particular method will be performed many times in succession and you wa…
Object Encoding and Decoding with NSSecureCoding Protocol February 27, 2014 MISC NSCoding is a fantastically simple and convenient way to store data on iOS or Mac OS by turning your model objects directly into a file and then loading it back into mem…
好用的一个object c 宏 from https://github.com/justzt/ios-helper/blob/master/Macro.h // // Macro.h // PhotoWorld // // Created by Yang on 10/5/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #define SafeRelease(A) [A release];A=nil; #define…
https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtHowMessagingWorks.html#//apple_ref/doc/uid/TP40008048-CH104-SW1 When objc_msgSend finds the procedure that implements a method, it calls the proc…