Game Development Reference
In-Depth Information
window , and if you want, you can also issue an sendSubviewToBack message to
put the view in the background.
You can now create and add views designed with Interface Builder to a cocos2d app.
Your result might look something like the one in Figure 15-6 .
Figure 15-6 . The resulting project shows the MyView.xib file designed with Interface Builder in the bottom half
Embedding the cocos2d View in Cocoa
Touch Apps
Many developers don't realize it's actually possible to embed a cocos2d view in a regu-
lar application using UIKit views as its main user interface. The cocos2d view doesn't
even have to be full-screen!
The difficulty merely lies in setting up the project. I'll show you how it's done.
Creating
a
View-Based
Application
Project
with
cocos2d
 
 
Search Nedrilad ::




Custom Search