Variable declaration difference in Objective-C

前端 未结 2 774
鱼传尺愫
鱼传尺愫 2020-12-25 10:00

I\'m was reading a tutorial about coreImage in iOS 6. In that tutorial I found something like:

@implementation ViewController {
    CIContext *context;
    C         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-25 10:59

    Thats a way of declaring private variables, they are not visible outside the class nor shown in header file

提交回复
热议问题