@protected in Objective-C

2 Solutions Collect From Internet About “@protected in Objective-C”

ughoavgfhw posted right answer in comments. I’ve asked him (in comments, also) to rewrite it as an answer – so I can accept it. But he didn’t. So I will post my own answer, simply to close the question and remove it from unanswered.

The solution:
Change C/C++ Compiler Version to LLVM compiler 2.0 in your project’s settings.

I also had the same problem, by using self->, everything worked fine.