Skip to content

Instantly share code, notes, and snippets.

@criccomini
Created September 25, 2012 00:21
Show Gist options
  • Select an option

  • Save criccomini/3779260 to your computer and use it in GitHub Desktop.

Select an option

Save criccomini/3779260 to your computer and use it in GitHub Desktop.
Simple Login Screen - LoginViewController.m
#import "LoginViewController.h"
@implementation LoginViewController
@synthesize usernameField;
@synthesize passwordField;
@synthesize loginButton;
@synthesize loginIndicator;
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
// Release anything that's not essential, such as cached data
}
- (void)dealloc {
[super dealloc];
}
- (IBAction) login: (id) sender
{
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment