【发布时间】:2013-06-10 19:29:59
【问题描述】:
我在 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
【问题讨论】:
标签: ios warnings clang deprecated