project_files/HedgewarsMobile/Classes/HelpPageViewController.m
author koda
Sat, 04 Sep 2010 16:24:00 +0200
changeset 3829 81db3c85784b
parent 3792 dd9345e74b66
child 4144 cda2685feeb4
permissions -rw-r--r--
headers ftw, also right project file
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3829
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
     1
/*
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
     2
 * Hedgewars-iOS, a Hedgewars port for iOS devices
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
     3
 * Copyright (c) 2009-2010 Vittorio Giovara <vittorio.giovara@gmail.com>
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
     4
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
     8
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    12
 * GNU General Public License for more details.
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    13
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    14
 * You should have received a copy of the GNU General Public License
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    15
 * along with this program; if not, write to the Free Software
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    17
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    18
 * File created on 30/08/2010.
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    19
 */
81db3c85784b headers ftw, also right project file
koda
parents: 3792
diff changeset
    20
3792
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    21
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    22
#import "HelpPageViewController.h"
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    23
#import "CommodityFunctions.h"
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    24
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    25
@implementation HelpPageViewController
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    26
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    27
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    28
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    29
    return rotationManager(interfaceOrientation);
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    30
}
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    31
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    32
-(void) didReceiveMemoryWarning {
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    33
    // Releases the view if it doesn't have a superview.
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    34
    [super didReceiveMemoryWarning];
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    35
    // Release any cached data, images, etc that aren't in use.
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    36
}
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    37
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    38
-(void) viewDidUnload {
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    39
    [super viewDidUnload];
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    40
    // Release any retained subviews of the main view.
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    41
    // e.g. self.myOutlet = nil;
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    42
}
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    43
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    44
-(void) dealloc {
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    45
    [super dealloc];
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    46
}
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    47
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    48
-(IBAction) dismiss {
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    49
    [UIView beginAnimations:@"helpingame" context:NULL];
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    50
    self.view.alpha = 0;
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    51
    [UIView commitAnimations];
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    52
    [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1];
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    53
}
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    54
dd9345e74b66 help page for lobby
koda
parents:
diff changeset
    55
@end