The previous two years in cocos2d used Uikit, always feel uikit do interface advantage is obvious, since turn-X, rarely used uikit. Today saw a Bo friends article immediately feel can in-X under the combined Uikit nonsense not much said, directly on the code:
ID sth = [[UIApplication sharedapplication] delegate];
if ([sth iskindofclass:[AppController class]]) {
Mapselviewcontroller *mapselviewcontroller = [[mapselviewcontroller alloc] initwithnibname: @ "Mapselviewcontroller" Bundle:nil];
[Mapselviewcontroller. View Setframe:CGRectMake (-480, 0, Mapselviewcontroller. View. frame. size. width, Mapselviewcontroller. view. frame. size. height)];
[Mapselviewcontroller. View Settag:1015];
AppController *controller = (AppController *) sth;
[Controller. Viewcontroller. view Addsubview:mapselviewcontroller. View];
}
Combination of COCOS2DX and IOS Uikit