autoreleasepool 2017-07-21 本文已影响12人 xiari1991 ARC下用 @autoreleasepool {}主要还是为了避免内存峰值。 autoreleasepool相当于缩小了部分变量的作用域,当{}执行完后,回自动release