这可能是一个愚蠢的问题,但我希望在为用户显示ChartBoost广告时收到通知。我在chartboost.h中看到,有一些代表,特别是感兴趣的代表,didDisplayInterstatial。
我不知道如何实现它,或者根本不知道如何使用它。
chartboost.h
@protocol ChartboostDelegate <NSObject>
@optional
/// All of the delegate methods below are optional.
/// Implement them only when you need to more finely control Chartboost's behavior.
/// Called before requesting an interestitial from the back-end
- (BOOL)shouldRequestInterstitial:(CBLocation)location;
// Called when an interstitial has been displayed on the screen.
- (void)didDisplayInterstitial:(CBLocation)location;
由于
答案 0 :(得分:0)
您是否在询问如何使用这些委托/协议方法?
如果是这样,它在Apple的iOS教程https://developer.apple.com/videos/和论坛中得到了很好的报道,例如: How do I set up a simple delegate to communicate between two view controllers?