example of code for a stack overflow question. http://stackoverflow.com/questions/19997854/combining-cocos2d-view-into-tabbar-app-using-ccviewcontroller