My code has a class in it (let's call it myRefLib) that inherits from UIReferenceLibraryViewController (part of UIKit Framework) which is a class that is only available in iOS 5 and above. I would like to have a deployment target of iOS 3.2.
If i was just creating an instance of the UIReferenceLibraryViewController, I understand I can use a base SDK of 5 and then test if the class exists with [UIReferenceLibraryViewController class] before running any code that includes it. But how do I do it if I'm inheriting from the class?
The issue is that I have to #include the inheriting class myRefLib for the parts of my code that will use it - but there is no way to conditionally do that at runtime. Alternatively there is also no way of runtime conditionally inheriting from UIReferenceLibraryViewController in myRefLib. I'd also like to make an instance of myRefLib a property of another class - again, how can I do that runtime conditionally?
Any help much appreciated ...
D