equal
deleted
inserted
replaced
86 } |
86 } |
87 |
87 |
88 // Override to allow orientations other than the default portrait orientation. |
88 // Override to allow orientations other than the default portrait orientation. |
89 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
89 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
90 // Return YES for supported orientations |
90 // Return YES for supported orientations |
91 return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft); |
91 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); |
92 } |
92 } |
93 |
93 |
94 // makes the keyboard go away when background is tapped |
94 // makes the keyboard go away when background is tapped |
95 -(IBAction) backgroundTap: (id)sender { |
95 -(IBAction) backgroundTap: (id)sender { |
96 [username resignFirstResponder]; |
96 [username resignFirstResponder]; |
136 [saveDict release]; |
136 [saveDict release]; |
137 } |
137 } |
138 |
138 |
139 -(void) returnMainView { |
139 -(void) returnMainView { |
140 [self flushData]; |
140 [self flushData]; |
|
141 //[self dismissModalViewControllerAnimated:YES] |
141 |
142 |
142 [UIView beginAnimations:@"Get Back" context:NULL]; |
143 [UIView beginAnimations:@"Get Back" context:NULL]; |
143 [UIView setAnimationDuration:1]; |
144 [UIView setAnimationDuration:1]; |
144 |
145 |
145 self.view.frame = CGRectMake(0, -257, 480, 278); |
146 self.view.frame = CGRectMake(0, -257, 480, 278); |