project_files/HedgewarsMobile/Classes/RestoreViewController.m
changeset 6832 fae8fd118da9
parent 6708 314929f0a3e1
child 6869 a187c280dd3d
equal deleted inserted replaced
6831:f848120b3fcc 6832:fae8fd118da9
    12  * GNU General Public License for more details.
    12  * GNU General Public License for more details.
    13  *
    13  *
    14  * You should have received a copy of the GNU General Public License
    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
    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.
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    17  *
       
    18  * File created on 28/05/2012.
       
    19  */
    17  */
    20 
    18 
    21 
    19 
    22 #import "RestoreViewController.h"
    20 #import "RestoreViewController.h"
    23 #import "GameInterfaceBridge.h"
    21 #import "GameInterfaceBridge.h"
    24 
    22 
    25 @implementation RestoreViewController
    23 @implementation RestoreViewController
    26 
    24 
    27 // Override to allow orientations other than the default portrait orientation.
       
    28 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    25 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    29     return rotationManager(interfaceOrientation);
    26     return rotationManager(interfaceOrientation);
    30 }
    27 }
    31 
       
    32 
    28 
    33 -(IBAction) buttonReleased:(id) sender {
    29 -(IBAction) buttonReleased:(id) sender {
    34     UIButton *theButton = (UIButton *)sender;
    30     UIButton *theButton = (UIButton *)sender;
    35     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    31     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    36 
    32