Do I need to include @synthesize?

I created @property by right-clicking and dragging from ViewController.xib to ViewController.h , but @synthesize not automatically created in ViewController.m .

This post said that @synthesize no longer required, but I'm wondering if @synthesize needs autocomplete for it to work correctly.

Q: Do I need to include @synthesize ?

+6
source share
3 answers

In a word, no. Xcode 4.5 is fully aware of the fact that @synthesize no longer required. You can do without!

+10
source

When using ARC, @synthesize auto appears. outside of ARC you have to add it. Adrian

+1
source

Yes, you are ready to go, but make sure you indicate it this way: self.textInput.text = @ "Hello World" Without self, it is not recognized.

+1
source

All Articles