Curly Braces in Objective-c

前端 未结 3 1195
独厮守ぢ
独厮守ぢ 2021-01-29 02:47

Note: My question is based after checking this and the answers to it.

In some bigger methods, there are pieces of code that you only want to be alive f

3条回答
  •  灰色年华
    2021-01-29 03:29

    Based on the above example, is this a valid way of lowering the memory footprint of an application?

    No. They're not even related. Neither are they related to @autoreleasepool - this usage of curly braces is the plain C way of opening a new scope.

提交回复
热议问题