ios - How to conditionally conform to delegate protocol? -


if including frameworks in ios project available in (for example) ios 9, still supporting ios 8, how conditionally conform delegate protocol depending on ios version? example, understand can include framework conditionally this:

#import <availability.h> #ifdef __iphone_9_0 #import <something/something.h> #endif 

but if framework needs conform delegate protocol?

@interface examplecontroller () <uitextviewdelegate, somethingdelegate>

how include "somethingdelegate" if i'm on ios 9?

thanks!

well, in same manner:

@interface examplecontroller () <uitextviewdelegate #ifdef __iphone_9_0      , somethingdelegate #endif > 

by way, not way should check if device running ios 9 - this checks if xcode supports ios 9.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -