Data structure of block

preface Underlying structure of block under Clang analysis Clang, look at the block code int age = 30; void (^yang)(void) = ^{ NSLog(@"%d", age); }; yang(); clang // The existence of isa indicates that block is an object struct __block_impl { void *isa; int Flags; int Reserved; void *FuncPtr; }; struct __main_block_d ...

Posted by Onloac on Fri, 03 Dec 2021 17:35:38 -0800

NSFileManager in Foundation framework

  Ladies and gentlemen, we introduced NSMutableData in the Foundation framework in the previous chapter, and NSFileManager in the Foundation framework in this chapter. NSFileManager is a file related class that provides methods related to file operation. Next, we will introduce how to use these methods to operate files. The files mentioned ...

Posted by jraede on Sun, 31 Oct 2021 10:07:04 -0700