TheLearner
TheLearner

Reputation: 19507

Are properties strong if you omit the keyword strong for ARC conversion

I have just converted my project to ARC using the automatic conversation tool but none of the properties were converted to strong, just left (nonatomic)?

I have been following this tutorial and it says all the properties should be (strong, nonatomic)

Any ideas?

Upvotes: 1

Views: 107

Answers (1)

Richard J. Ross III
Richard J. Ross III

Reputation: 55563

With ARC enabled, properties default to strong:

A property of retainable object pointer type which is synthesized without a source of ownership has the ownership of its associated instance variable, if it already exists; otherwise, [beginning Apple 3.1, LLVM 3.1] its ownership is implicitly strong. Prior to this revision, it was ill-formed to synthesize such a property.

From here

Upvotes: 3

Related Questions