UIView

Phone Rotation

 * http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation
 * http://stackoverflow.com/questions/2117940/iphone-force-rotation

Other
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
 * http://www.iphonedevbook.com/forum/viewtopic.php?f=25&t=916

bool backgroundTouched = true; for (UITouch *touch in touches) { CGPoint location = [touch locationInView:self]; for (UITableViewCell *cell in self.visibleCells) { if (CGRectContainsPoint(cell.frame, location)) { backgroundTouched = false; break; }     }   }   if (backgroundTouched) { for (UITableViewCell *cell in self.visibleCells) { // The first subview is the text field inside the cell [[cell.contentView.subviews objectAtIndex:0] resignFirstResponder];     }   }   [super touchesBegan:touches withEvent:event]; }  - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {   if([event touchesForView:self])   {      [responseForm resignFirstResponders]; //this is a method i wrote to automatically send 'resignFirstResponder' to every applicable element on a form   } }
 * http://www.iphonedevbook.com/forum/viewtopic.php?f=25&t=916&sid=1789c62db8c286f77ce3192e725582cf&start=10