This file contains 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 characters
CGRect viewRect = CGRectMake(0, 0, 100, 100); | |
UIColor * greyColor = [UIColor colorWithRed:230.0/255.0 green:230.0/255.0 blue:230.0/255.0 alpha:1.0]; | |
[greyColor setFill]; | |
UIRectFill( viewRect ); | |
UIViewController *rootViewController = [[UIApplication sharedApplication] keyWindow].rootViewController; | |
UIView* myView = [[UIView alloc] initWithFrame:viewRect]; | |
myView.backgroundColor = greyColor; |
This file contains 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 characters
// | |
// main.m | |
// nienie | |
/* | |
credit to Gabriele Greco from | |
https://forums.libsdl.org/viewtopic.php?t=8906&sid=b72546db8669ba672be8253304974314 | |
This is slightly modifified version of his ad banner class from his project | |
source | |
https://sourceforge.net/p/etw/code/HEAD/tree/trunk/etw/Banner.m#l4 | |
*/ |
This file contains 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 characters
from kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.uix.scatter import Scatter | |
from kivy.core.window import Window | |
from kivy.uix.floatlayout import FloatLayout | |
from kivy.lang import Builder | |
Window.clearcolor = (1, 1, 1, 1) | |
Builder.load_string(''' | |
<TextSquare>: |