TapJoy実装(iOS)

TapJoyの組み込み(iOS)


基本的に、下記のページの流れで問題なし。

>iPhoneアプリにTapjoyのリワード広告を導入する方法
http://trackback.blogsys.jp/livedoor/abars/51950019


getTapPoints したらすぐ、spendTapPointsしたいとき、

下記の2つは別のスレッドから呼び出す。
[TapjoyConnect getTapPoints];
[TapjoyConnect spendTapPoints];


Spendの方のNotificationCenterは、

[TapjoyConnect spendTapPoints];
[[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(getSpendPointsResponse:)
                                                 name:TJC_SPEND_TAP_POINTS_RESPONSE_NOTIFICATION
                                               object:nil];


呼び出されるのは、

-(void)getSpendPointsResponse:(NSNotification*)notifyObj{
// ここで、TapPoints使いましたよーとかアラート出したり、出さなかったり。
}