__attribute__((cleanup(function))

发布在 iOS

__attribute__ 是一个编译命令, 可以为变量、函数、类型定义提供一些属性.
__attribute__有很多属性deprecated、unused、cleanup等等, 本文主要讲 cleanup.
阅读全文

__strong、__weak、__block.

发布在 iOS

首先说一下循环引用, 为什么没用__weak 修饰就直接用 self.属性不会造成循环引用.
循环引用是指两个或者多个对象循环持有造成的无法释放.
阅读全文

作者的图片

Yan

A Coder
Who likes code,
but isn’t good at coding.


iOS developer


Shanghai