project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 6260 025d50a6aeb0
parent 6259 02765411a912
child 6268 d773867f93db
equal deleted inserted replaced
6259:02765411a912 6260:025d50a6aeb0
   203 -(void) removeOverlay {
   203 -(void) removeOverlay {
   204     [self.popupMenu performSelectorOnMainThread:@selector(dismiss) withObject:nil waitUntilDone:YES];
   204     [self.popupMenu performSelectorOnMainThread:@selector(dismiss) withObject:nil waitUntilDone:YES];
   205     [self.popoverController performSelectorOnMainThread:@selector(dismissPopoverAnimated:) withObject:nil waitUntilDone:YES];
   205     [self.popoverController performSelectorOnMainThread:@selector(dismissPopoverAnimated:) withObject:nil waitUntilDone:YES];
   206     [self.view performSelectorOnMainThread:@selector(removeFromSuperview) withObject:nil waitUntilDone:YES];
   206     [self.view performSelectorOnMainThread:@selector(removeFromSuperview) withObject:nil waitUntilDone:YES];
   207     [self performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:YES];
   207     [self performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:YES];
       
   208     mainOverlay = nil;
   208 }
   209 }
   209 
   210 
   210 #pragma mark -
   211 #pragma mark -
   211 #pragma mark overlay user interaction
   212 #pragma mark overlay user interaction
   212 // dim the overlay when there's no more input for a certain amount of time
   213 // dim the overlay when there's no more input for a certain amount of time