We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
EAGLView.mm bug
EAGLView.mm bug
Bug #252 [Closed]
- Status changed from Resolved to Closed
- Project changed from 7 to cocos2d-x
- Category set to 1
- Project changed from cocos2d-x to cpp
- Category deleted (
1) - Target version deleted (
cocos2d-0.99.4-x-0.7.1)
Status: | Closed | |
---|---|---|
Start date: | 2010-12-10 | |
Priority: | Normal | |
Due date: | ||
Assignee: | zhangxm | |
% Done: | 100% |
|
Category: | - | |
Target version: | - | |
Estimated time: | 1.00 point |
Inside of EAGLView.mm there is a method named initWithCoder. That method does not set the static variable ‘view’ to self before exiting. This makes it impossible to declare an EAGLView inside of an XIB and point cocos2d to render into that view. This is pretty important if you want to mix cocos2d with UIKit, since loading of the view calls initWithCoder and not initWithFrame.