Objective-C constants: NSString comparison using ==?

后端 未结 3 1718
时光取名叫无心
时光取名叫无心 2021-01-14 00:03

The discussions I found about setting NSString constants made me code it the following way:

.h file:

extern NSString * const kSectionHeaders;
         


        
3条回答
  •  渐次进展
    2021-01-14 00:53

    Who described that as a bad solution? It is the only proper/correct solution to the problem at hand.

提交回复
热议问题