What is the significance of #pragma marks? Why do we need #pragma marks?

前端 未结 7 1461
耶瑟儿~
耶瑟儿~ 2021-01-29 17:21

What is the purpose of #pragma marks in Xcode? Does their location in .m files matter? Should some #pragma come before all others?

7条回答
  •  我在风中等你
    2021-01-29 17:56

    In simple word we can say that #pragma mark - is used for categorizing methods, so you can find your methods easily. It is very useful for long projects.

提交回复
热议问题