equal
deleted
inserted
replaced
117 cachedGrenadeTime = 2; |
117 cachedGrenadeTime = 2; |
118 |
118 |
119 isAttacking = NO; |
119 isAttacking = NO; |
120 wasVisible = NO; |
120 wasVisible = NO; |
121 isPopoverVisible = NO; // it is called "popover" even on the iphone |
121 isPopoverVisible = NO; // it is called "popover" even on the iphone |
122 self.view.alpha = 0; |
|
123 } |
122 } |
124 return self; |
123 return self; |
125 } |
124 } |
126 |
125 |
127 -(void) viewDidLoad { |
126 -(void) viewDidLoad { |
128 CGRect screenRect = [[UIScreen mainScreen] bounds]; |
127 CGRect screenRect = [[UIScreen mainScreen] bounds]; |
129 self.view.frame = CGRectMake(0, 0, screenRect.size.height, screenRect.size.width); |
128 self.view.frame = CGRectMake(0, 0, screenRect.size.height, screenRect.size.width); |
130 self.view.center = CGPointMake(self.view.frame.size.height/2, self.view.frame.size.width/2); |
129 self.view.center = CGPointMake(self.view.frame.size.height/2, self.view.frame.size.width/2); |
|
130 self.view.alpha = 0; |
131 |
131 |
132 // detrmine the quanitiy and direction of the rotation |
132 // detrmine the quanitiy and direction of the rotation |
133 if (self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft) { |
133 if (self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft) { |
134 a = 180; |
134 a = 180; |
135 b = 0; |
135 b = 0; |
261 } |
261 } |
262 |
262 |
263 -(void) viewDidUnload { |
263 -(void) viewDidUnload { |
264 // only objects initialized in viewDidLoad should be here |
264 // only objects initialized in viewDidLoad should be here |
265 [[NSNotificationCenter defaultCenter] removeObserver:self]; |
265 [[NSNotificationCenter defaultCenter] removeObserver:self]; |
|
266 [NSObject cancelPreviousPerformRequestsWithTarget:self |
|
267 selector:@selector(unsetPreciseStatus) |
|
268 object:nil]; |
266 dimTimer = nil; |
269 dimTimer = nil; |
267 self.helpPage = nil; |
270 self.helpPage = nil; |
268 [self dismissPopover]; |
271 [self dismissPopover]; |
269 self.popoverController = nil; |
272 self.popoverController = nil; |
270 self.amvc = nil; |
273 self.amvc = nil; |