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