9

I am trying to enable arc in my application but when xcode check my project then it is giving one error on given below line.

Tile ***grid;

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

Please guide me how to solve this problem.

Iqbal Khan
  • 4,587
  • 8
  • 44
  • 83

1 Answers1

19

ARC cannot infer what storage type it should use. So you have to tell it!

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

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

More about strong and weak references can be found here

Community
  • 1
  • 1
Daij-Djan
  • 49,552
  • 17
  • 113
  • 135