pre-iOS 4设备委托协议
问题描述:
我是否可以将UIBannerViewDelegate协议添加到我的UIViewController子类中,同时保持与iOS 4之前的设备兼容?pre-iOS 4设备委托协议
这不是重复的,这个问题是专门与委托协议相关的。
答
我想尝试这样的:
#ifdef __IPHONE_4_0
@interface MYViewController <UIBannerViewDelegate, …>
#else
@interface MYViewController < … >
#endif
记住#include <TargetConditionals.h>;
。
编辑:这个问题被骗了Are Apps using iAd compatible with older iOS有一个更完整的答案。
编辑您的上一个问题以阐明它。不要创建一个新的。 [使用iAd的应用程序是否与旧iOS兼容](http://*.com/questions/3128457/are-apps-using-iad-compatible-with-older-ios) – 2010-06-27 19:53:04
抱歉, – GSchv 2010-06-27 19:55:55