8

In the page based application template, I am seeing this a lot in the implementation (.m) files.

@interface ModelController()
@property (readonly, strong, nonatomic) NSArray *pageData;
@end

Why isn't this done in the header (.h) file?

1 Answer 1

13

This property is in the implementation file because it does not need to be declared publicly and only used within the .m file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.