Created
June 13, 2014 13:08
Revisions
-
adib created this gist
Jun 13, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ // // BSGLView.h // AirKill // // Created by Sasmito Adibowo on 07-06-14. // Basil Salad Software, http://basilsalad.com // // This code is in the public domain. #import "CCGLView.h" @interface BSGLView : CCGLView @end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ // // BSGLView.m // AirKill // // Created by Sasmito Adibowo on 07-06-14. // Basil Salad Software, http://basilsalad.com // // This code is in the public domain. // #import <objc/message.h> #import "BSGLView.h" @implementation BSGLView -(void)layoutSubviews { // We need this because CCGLView doesn't call UIView layoutSubviews and we need to add subviews Class granny = [[self superclass] superclass]; struct objc_super theSuper = {self, granny}; objc_msgSendSuper(&theSuper,_cmd); [super layoutSubviews]; } @end