huixing
huixing

Reputation: 431

what is the diffrent meaning of the different location of __strong modifier

when I use objective-c to develop ios App,I want to know the different of __strong id obj and id __strong obj.I dont know the meaning of the firsrt one,who can tell me the answer?thank you very much

Upvotes: 0

Views: 71

Answers (1)

Dex
Dex

Reputation: 971

The semantic meaning of both __strong id obj and id __strong obj are identical. The latter is the proper form but the compiler will accept either.

See http://clang.llvm.org/docs/AutomaticReferenceCounting.html#semantics

Upvotes: 1

Related Questions