equal
deleted
inserted
replaced
38 } |
38 } |
39 |
39 |
40 #pragma mark - |
40 #pragma mark - |
41 #pragma mark view handling |
41 #pragma mark view handling |
42 -(void) viewDidLoad { |
42 -(void) viewDidLoad { |
43 [[NSNotificationCenter defaultCenter] addObserver:self |
|
44 selector:@selector(updateAmmoVisuals) |
|
45 name:@"updateAmmoVisuals" |
|
46 object:nil]; |
|
47 |
|
48 self.view.frame = CGRectMake(0, 0, 480, 320); |
43 self.view.frame = CGRectMake(0, 0, 480, 320); |
49 self.view.backgroundColor = [UIColor blackColor]; |
44 self.view.backgroundColor = [UIColor blackColor]; |
50 self.view.layer.borderColor = [[UIColor whiteColor] CGColor]; |
45 self.view.layer.borderColor = [[UIColor whiteColor] CGColor]; |
51 self.view.layer.borderWidth = 1.3f; |
46 self.view.layer.borderWidth = 1.3f; |
52 [self.view.layer setCornerRadius:10]; |
47 [self.view.layer setCornerRadius:10]; |
342 MSG_MEMCLEAN(); |
337 MSG_MEMCLEAN(); |
343 [super didReceiveMemoryWarning]; |
338 [super didReceiveMemoryWarning]; |
344 } |
339 } |
345 |
340 |
346 -(void) viewDidUnload { |
341 -(void) viewDidUnload { |
347 [[NSNotificationCenter defaultCenter] removeObserver:self]; |
|
348 self.imagesArray = nil; |
342 self.imagesArray = nil; |
349 self.buttonsArray = nil; |
343 self.buttonsArray = nil; |
350 self.nameLabel = nil; |
344 self.nameLabel = nil; |
351 self.extraLabel = nil; |
345 self.extraLabel = nil; |
352 self.captionLabel = nil; |
346 self.captionLabel = nil; |