project_files/HedgewarsMobile/Classes/SupportViewController.m
author koda
Wed, 03 Nov 2010 00:48:42 +0100
changeset 4098 40df542b5f62
parent 3891 f8f0d0ceb19c
child 4115 222b8016c773
permissions -rw-r--r--
i give up and disable rotation on the iphone; also fix smaller compilation issues
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
3891
f8f0d0ceb19c initial support for savegames
koda
parents: 3884
diff changeset
    21
3884
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    22
#import "SupportViewController.h"
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    23
#import "CommodityFunctions.h"
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    24
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    25
@implementation SupportViewController
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    26
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    27
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    28
    return rotationManager(interfaceOrientation);
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
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    31
-(void) didReceiveMemoryWarning {
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    32
    // Releases the view if it doesn't have a superview.
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    33
    [super didReceiveMemoryWarning];
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    34
    // 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
    35
}
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    36
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    37
-(void) viewDidUnload {
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    38
    [super viewDidUnload];
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    39
    // Release any retained subviews of the main view.
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    40
    // e.g. self.myOutlet = nil;
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
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    43
-(void) dealloc {
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    44
    [super dealloc];
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
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    47
-(IBAction) buttonPressed:(id) sender {
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    48
    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
    49
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
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
d7479079a8a8 various fixes around, plus new 'ask for review' page
koda
parents:
diff changeset
    52
@end