我正在使用iOS中的一个安全框架,但它不兼容UIDocumentInteractionController
。 我希望其他开发人员在尝试使用此类时能收到警告。 我已尝试了以下方法,但并没有效果。 有什么想法吗?
MyApp.pch
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "UIDocumentInteractionController+JVAdditions.h"
#endif
UIDocumentInteractionController+Additions.h
#import <UIKit/UIKit.h>
@interface UIDocumentInteractionController ()
+ (UIDocumentInteractionController *)interactionControllerWithURL:(NSURL *)url __attribute__((deprecated));
@end