project_files/HedgewarsMobile/Classes/SupportViewController.m
changeset 3884 d7479079a8a8
child 3891 f8f0d0ceb19c
equal deleted inserted replaced
3883:5934ddf9ed5d 3884:d7479079a8a8
       
     1 /*
       
     2  * Hedgewars-iOS, a Hedgewars port for iOS devices
       
     3  * Copyright (c) 2009-2010 Vittorio Giovara <vittorio.giovara@gmail.com>
       
     4  *
       
     5  * This program is free software; you can redistribute it and/or modify
       
     6  * it under the terms of the GNU General Public License as published by
       
     7  * the Free Software Foundation; version 2 of the License
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12  * GNU General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU General Public License
       
    15  * along with this program; if not, write to the Free Software
       
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
       
    17  *
       
    18  * File created on 19/09/2010.
       
    19  */
       
    20 
       
    21 #import "SupportViewController.h"
       
    22 #import "CommodityFunctions.h"
       
    23 
       
    24 @implementation SupportViewController
       
    25 
       
    26 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
       
    27     return rotationManager(interfaceOrientation);
       
    28 }
       
    29 
       
    30 -(void) didReceiveMemoryWarning {
       
    31     // Releases the view if it doesn't have a superview.
       
    32     [super didReceiveMemoryWarning];
       
    33     // Release any cached data, images, etc that aren't in use.
       
    34 }
       
    35 
       
    36 -(void) viewDidUnload {
       
    37     [super viewDidUnload];
       
    38     // Release any retained subviews of the main view.
       
    39     // e.g. self.myOutlet = nil;
       
    40 }
       
    41 
       
    42 -(void) dealloc {
       
    43     [super dealloc];
       
    44 }
       
    45 
       
    46 -(IBAction) buttonPressed:(id) sender {
       
    47     NSString *reviewURL = @"http://itunes.apple.com/us/app/hedgewars/id391234866?affC=QQABAAAAHgAFasEiWjVwUGZOc3k1VGctQkRJazlacXhUclpBTVpiU2xteVdfUQ%3D%3D#&mt=8";
       
    48     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
       
    49 }
       
    50 
       
    51 @end