I’ve got a class which is implementing the UIPopOverControllerDelegate:
#if ios_atleast_32
@interface MyClass : UIViewController <UIPopoverDelegate>
#elsif
@interface MyClass : UIViewController
#endif
Is it possible to make determine at runtime if the class is available and therefore should be used as delegate? The same for imports:
#if ios_4_available
#import "MyClassWhichIsUsingIos4Stuff.h"
#endif
as the two above mentioned, it’s no problem to import classes – but UIKit has to be weakly linked… that was the missing point in my case!