cocoaTouch/OverlayViewController.m
changeset 3340 96dd168b080b
parent 3335 2520ee7a5484
child 3347 5d0ac8197eb7
equal deleted inserted replaced
3339:d558bc5a73c5 3340:96dd168b080b
    27 	// Releases the view if it doesn't have a superview.
    27 	// Releases the view if it doesn't have a superview.
    28     [super didReceiveMemoryWarning];
    28     [super didReceiveMemoryWarning];
    29 	// Release any cached data, images, etc that aren't in use.
    29 	// Release any cached data, images, etc that aren't in use.
    30 }
    30 }
    31 
    31 
       
    32 /*
       
    33 - (void)didRotate:(NSNotification *)notification {	
       
    34 	if (orientation == UIDeviceOrientationLandscapeLeft) {
       
    35 	}
       
    36     if (orientation == UIDeviceOrientationLandscapeRight) {
       
    37     }
       
    38 	if (orientation == UIDeviceOrientationPortrait) {
       
    39 	}
       
    40     if (orientation == UIDeviceOrientationPortrait) {
       
    41 	}
       
    42 }
       
    43 */
       
    44 
    32 -(void) viewDidLoad {
    45 -(void) viewDidLoad {
       
    46     /*
       
    47     [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];	
       
    48     [[NSNotificationCenter defaultCenter] addObserver:self
       
    49 							selector:@selector(didRotate:)
       
    50 							name:UIDeviceOrientationDidChangeNotification
       
    51 							object:nil];
       
    52     */
    33     isPopoverVisible = NO;
    53     isPopoverVisible = NO;
    34     self.view.alpha = 0;
    54     self.view.alpha = 0;
    35 
    55 
    36     // needed for rotation to work on os < 3.2
    56     // needed for rotation to work on os < 3.2
    37     self.view.center = CGPointMake(self.view.frame.size.height/2.0, self.view.frame.size.width/2.0);
    57     self.view.center = CGPointMake(self.view.frame.size.height/2.0, self.view.frame.size.width/2.0);