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