Kaydet (Commit) 0d1321e0 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add a property for the UIWindow and show it

üst 71f18c42
......@@ -76,19 +76,26 @@ sal_main_with_args(int argc, char ** argv) \
@interface salAppDelegate : NSObject <UIApplicationDelegate> {
}
@property (nonatomic, retain) UIWindow *window;
@end
static int sal_main_with_args(int argc, char **argv);
@implementation salAppDelegate
@synthesize window=_window;
- (BOOL)application: (UIApplication *) application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions
{
UIWindow *uiw = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
uiw.backgroundColor = [UIColor redColor];
self.window = uiw;
[uiw release];
sal_main_with_args(sal_argc, sal_argv);
[self.window makeKeyAndVisible];
return YES;
}
@end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment