When you start ViewController , the variable of another class is initialized as an array:

 @implementation ViewController { MYClass *_class[4][4]; } 

And it turns out that the _class variable stores an array of MYClass objects and at the same time they can be accessed as _class[2][2].value where value is a variable of the class MYClass .

Everything works fine, but I need to get access to this _class from another class - is it possible to do this?

    1 answer 1

    declare _class in @interface in .h and not in @implementation (actually make it public instead of private)

    • This does not work, produces: "Property cannot have an array or function type 'MYClass * [4] [4]'" - xXxxX
    • Although if you define _class outside @interface, then in principle, what you need, but the fact that it is completely public is certainly not very good. - xXxxX