cocoaTouch/SettingsViewController.h
author koda
Wed, 03 Feb 2010 03:01:44 +0000
changeset 2740 03df0573a9fd
parent 2720 a5111ec4d25f
child 2743 39d097ac2276
permissions -rw-r--r--
programmatically load main controller adapt settings to landscape transition between main controller and other views

//
//  SettingsViewController.h
//  hwengine
//
//  Created by Vittorio on 08/01/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface SettingsViewController : UIViewController 
		<UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate> {
	UITextField *username;
	UITextField *password;
	UISwitch *musicSwitch;
	UISwitch *soundsSwitch;
	UISwitch *altDamageSwitch;
	UISlider *volumeSlider;
	UILabel *volumeLabel;
	UITableView *table;
	UITableViewCell *volumeCell;
	UIView *buttonContainer;
	BOOL needsReset;
}

@property (nonatomic, retain) IBOutlet UITextField *username;
@property (nonatomic, retain) IBOutlet UITextField *password;
@property (nonatomic, retain) UISwitch *musicSwitch;
@property (nonatomic, retain) UISwitch *soundsSwitch;
@property (nonatomic, retain) UISwitch *altDamageSwitch;
@property (nonatomic, retain) IBOutlet UISlider *volumeSlider;
@property (nonatomic, retain) IBOutlet UILabel *volumeLabel;
@property (nonatomic, retain) IBOutlet UITableView *table;
@property (nonatomic, retain) IBOutlet UITableViewCell *volumeCell;
@property (nonatomic, retain) IBOutlet UIView *buttonContainer;

-(IBAction) sliderChanged: (id)sender;
-(IBAction) backgroundTap: (id)sender;
-(IBAction) textFieldDoneEditing: (id)sender;
-(IBAction) deleteData: (id)sender;
@end