4

I'm getting the following llvm warning

Auto property synthesis will not synthesize property 'imageView' because it is 'readwrite' but it will be synthesized 'readonly' via another property.

When I Googled the error message if found a link to a LLVM Bug 16693. But I couldn't find a way to suppress the warning.

John
  • 505
  • 2
  • 6

1 Answers1

1

@Chris Lavender is right. You can try it out for yourself. Go to the public interface of a UIViewController subclass and add the property:

@property (nonatomic, readwrite) UIViewController* parentViewController;

You'll get the same warning. And if you check the UIViewController docs, sure enough, that property is already declared as readonly.

barndog
  • 6,975
  • 8
  • 53
  • 105