objective c - Overlay View using Frameworks in iOS -


i have created framework (static library) presents overlay view on top of calling delegate. following code:

[[[self delegate] view] addsubview:overlay.view]; 

i created basic skeleton app test it, i.e., user taps button , framework called. works fine in case.

however, trying implement in popular open source ios game built on cocos-2d, tweejump. click here source code of game.

i want overlay presented highscore view shown user. however, setting highscore class delegate framework causes error reason: '-[highscores view]: unrecognized selector sent instance 0x13d43c70'

i understand the highscore class not subclass of uiview, causes error. question how suggest implement framework in tweejump. either framework presents overlay should in different way, or should call differently in tweejump.

thanks

the cocos2d uiview accessible via

[ccdirector shareddirector].view; 

in earlier versions it's either glview or openglview. you'll have add overlay view.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -