iOS create macro

后端 未结 4 1641
情歌与酒
情歌与酒 2021-02-06 05:18

I have a piece of code I\'m using fairly often and would like to make a macro out of it. I\'m not exactly sure how to do that though. Here\'s the code I want to use



        
4条回答
  •  清酒与你
    2021-02-06 05:56

    use #define with the preprocessor, write a function, or write a method for your class.

提交回复
热议问题