use iRate in cocos2d-x

There will be an error: [AppController window]:unrecognized selector . if you follow the instruction in https://github.com/nicklockwood/iRate.

This is how to fix this:

1, In AppController.h

comment the window variable;

// UIWindow *window;

add :

@property(nonatomic,retain) UIWindow* window;

2, In AppController.m

add:

@synthesize window;

Done!

你可能感兴趣的:(use iRate in cocos2d-x)