project_files/HedgewarsMobile/Classes/HelpPageLobbyViewController.m
author koda
Mon, 30 Aug 2010 05:42:03 +0200
changeset 3791 98072b3871c1
permissions -rw-r--r--
help page for ingame, some other fixes here and there
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3791
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
     1
    //
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
     2
//  HelpPageLobbyViewController.m
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
     3
//  Hedgewars
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
     4
//
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
     5
//  Created by Vittorio on 30/08/10.
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
     7
//
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
     8
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
     9
#import "HelpPageLobbyViewController.h"
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    10
#import "CommodityFunctions.h"
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    11
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    12
@implementation HelpPageLobbyViewController
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    13
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    14
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    15
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    16
    return rotationManager(interfaceOrientation);
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    17
}
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    18
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    19
-(void) didReceiveMemoryWarning {
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    20
    // Releases the view if it doesn't have a superview.
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    21
    [super didReceiveMemoryWarning];
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    22
    // Release any cached data, images, etc that aren't in use.
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    23
}
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    24
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    25
-(void) viewDidUnload {
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    26
    [super viewDidUnload];
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    27
    // Release any retained subviews of the main view.
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    28
    // e.g. self.myOutlet = nil;
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    29
}
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    30
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    31
-(void) dealloc {
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    32
    [super dealloc];
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    33
}
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    34
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    35
-(IBAction) dismiss {
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    36
    [UIView beginAnimations:@"helpingame" context:NULL];
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    37
    self.view.alpha = 0;
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    38
    [UIView commitAnimations];
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    39
    [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    40
}
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    41
98072b3871c1 help page for ingame, some other fixes here and there
koda
parents:
diff changeset
    42
@end