0

I have a property of type Class. ie:

 @property (nonatomic, Strong or Weak?) Class myClass; 

Should it be a strong or a weak reference?

Thanks!

3
  • You can use whatever you want to.... nothing will change in this case... Commented Jan 18, 2013 at 20:38
  • @nickfalk No, this one here is especially about Class objects. Commented Jan 18, 2013 at 20:40
  • Sorry, my bad didn't note the missing pointer-ref. (I read the question as an abstraction, i. e. Class could be AnyCustomClass). Commented Jan 18, 2013 at 20:43

1 Answer 1

1

It can safely be unsafe_unretained since classes are never released.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.