MBProgressHUD の使用方法の簡単なコードを次に示します。
// Add at the top of the file
#import "MBProgressHUD.h"
// Add right before return TRUE in textFieldShouldReturn
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.labelText = @"Redeeming code...";
// Add at start of requestFinished AND requestFailed
[MBProgressHUD hideHUDForView:self.view animated:YES];
そして明らかに、MBProgressHUD を追加するためのビューが必要です。
問題は、cocos2d にビューがなく、CCNode しかないことです。
それで、この問題を解決する方法はありますか?
UIview を CCLayer に追加することによって?
これがばかげた質問である場合は、私はまだプログラミングに非常に慣れていないため、私の謝罪を受け入れてください.