mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-15 11:31:37 +08:00
Also, AnimationState listeners are done using blocks. This is for cocos2d 2.1.0. Version 3.0 and 3.1 is coming soon.
21 lines
490 B
Objective-C
21 lines
490 B
Objective-C
|
|
#import <UIKit/UIKit.h>
|
|
#import "cocos2d.h"
|
|
|
|
// Added only for iOS 6 support
|
|
@interface MyNavigationController : UINavigationController <CCDirectorDelegate>
|
|
@end
|
|
|
|
@interface AppController : NSObject <UIApplicationDelegate> {
|
|
UIWindow *window_;
|
|
MyNavigationController *navController_;
|
|
|
|
CCDirectorIOS *director_; // weak ref
|
|
}
|
|
|
|
@property (nonatomic, retain) UIWindow *window;
|
|
@property (readonly) MyNavigationController *navController;
|
|
@property (readonly) CCDirectorIOS *director;
|
|
|
|
@end
|