Return to Snippet

Revision: 42103
at February 27, 2011 14:01 by takezou621


Initial Code
-(UIWindow*) delegateWindow{
	
	UIWindow	*result = nil;
	
	Project1AppDelegate	*delegate = 
	(Project1AppDelegate*)[UIApplication sharedApplication].delegate;
	
	if(delegate != nil){
		result = [delegate window];
	}
	
	return result;
}

-(void)logMainWindowRect{

	UIWindow *mainWindow = [self delegateWindow];
	if(mainWindow != nil){
		NSLog(@"Window Rect = %@",NSStringFromCGRect(MainWindow.frame));
	}
}

Initial URL


Initial Description


Initial Title
ApplicationDelegateオブジェクトを取得する

Initial Tags


Initial Language
Objective C