#
import "MainViewController.h" #
import "MainView.h" @implementation MainViewController
@synthesize createPassword;
@synthesize emailPassword;
- (id)initWithNibName:(NSString *)nibNameOrNilbundle:(NSBundle *)nibBundleOrNil {
if(self = [
super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
}
returnself;
}
- (
void)viewDidLoad {
UIImage*buttonBackground = [[UIImage imageNamed:
@"blueButton.png"]stretchableImageWithLeftCapWidth:12.0 topCapHeight:12.0 ];
[createPasswordsetBackgroundImage:buttonBackground forState:UIControlStateNormal];
[emailPasswordsetBackgroundImage:buttonBackground forState:UIControlStateNormal];
[createPasswordsetTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[emailPasswordsetTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
UIImage*buttonBackgroundSel = [[UIImage imageNamed:
@"whiteButton.png"]stretchableImageWithLeftCapWidth:12.0 topCapHeight:12.0 ];
[createPasswordsetBackgroundImage:buttonBackgroundSel forState:UIControlStateHighlighted];
[createPasswordsetBackgroundImage:buttonBackgroundSel forState:UIControlStateSelected];
[emailPasswordsetBackgroundImage:buttonBackgroundSel forState:UIControlStateHighlighted];
[emailPasswordsetBackgroundImage:buttonBackgroundSel forState:UIControlStateSelected];
[createPasswordsetTitleColor:[UIColor blackColor] forState:UIControlStateHighlighted];
[createPasswordsetTitleColor:[UIColor blackColor] forState:UIControlStateSelected];
[emailPasswordsetTitleColor:[UIColor blackColor] forState:UIControlStateHighlighted];
[emailPasswordsetTitleColor:[UIColor blackColor] forState:UIControlStateSelected];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
//Return YES for supported orientations return(interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (
void)didReceiveMemoryWarning {
[superdidReceiveMemoryWarning];
// Releases the view if it doesn't have a superview //Release anything that's not essential, such as cached data }
- (
void)dealloc {
[emailPasswordrelease];
[createPasswordrelease];
[superdealloc];
}
@end