Pointer to a non-const type Tile * without explicit ownership

I am trying to enable an arc in my application, but when xcode validates my project, it gives one error in the line below.

Tile ***grid;

Error: pointer to non-const type Tile * without explicit ownership.

Please help me solve this problem.

+5
source share
1 answer

ARC cannot determine what type of storage it should use. Therefore you must say it!

    Tile * __strong **grid; // Strong reference to grid

    Tile * __weak **grid; // Weak reference to grid

More on strong and weak links can be found here.

+16
source

All Articles