Teacup
12-17-2007, 12:27 PM
Trying to create a simple full screen application, initially without any text, image or buttons / bars. Just to get the basic hang of windowing.
When I run this application however, it displays nothing. Any suggestions welcome.
#import "MyApplication.h"
@implementation MyApplication
- (void) applicationDidFinishLaunching: (id) unused
{
UIWindow *window;
struct CGRect rect = [UIHardware fullScreenApplicationContentRect];
rect.origin.x = rect.origin.y = 0.0f;
window = [[UIWindow alloc] initWithContentRect: rect];
mainDisplay = [[UIView alloc] initWithFrame: rect];
[window orderFront: self];
[window makeKey: self];
[window _setHidden: NO];
[window setContentView: mainDisplay];
}
@end
When I run this application however, it displays nothing. Any suggestions welcome.
#import "MyApplication.h"
@implementation MyApplication
- (void) applicationDidFinishLaunching: (id) unused
{
UIWindow *window;
struct CGRect rect = [UIHardware fullScreenApplicationContentRect];
rect.origin.x = rect.origin.y = 0.0f;
window = [[UIWindow alloc] initWithContentRect: rect];
mainDisplay = [[UIView alloc] initWithFrame: rect];
[window orderFront: self];
[window makeKey: self];
[window _setHidden: NO];
[window setContentView: mainDisplay];
}
@end
