-1

Which is the preferred method of importing for a source file from a Third Party?

I have the third party library (YLTableView) installed via CocoaPods.

e.g.

#import "YLTableViewDataSource.h"

or

#import <YLTableView/YLTableViewDataSourceSubclass.h>

Please provide reasoning as to why one is preferrable over the other.

Ríomhaire
  • 3,084
  • 4
  • 25
  • 40

1 Answers1

1

If it is a framework that you are importing then you use:

#import <frameworkName/FrameworkGlobalHeader.h>

If it is not a library then just use:

#import "headerfile.h"

Swinny89
  • 7,273
  • 3
  • 32
  • 52
  • Thanks - as per question "Please provide reasoning as to why one is preferrable over the other." – Ríomhaire Aug 02 '16 at 15:33
  • @Ríomhaire, Hope this helps: http://stackoverflow.com/questions/3156432/difference-between-writing-import-filename-h-and-import-filename-h-i-e-wri – Suhaib Aug 02 '16 at 23:01