[super viewDidDisappear:animated];
}
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
- // Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
+ return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) || (toInterfaceOrientation == UIInterfaceOrientationPortrait);
}
#pragma mark - Table view data source
UITextField *textField = [[UITextField alloc] initWithFrame:rect];
[textField setFrame:rect];
[textField setClearButtonMode:UITextFieldViewModeWhileEditing];
- [textField setBackgroundColor:[UIColor whiteColor]];
+ [textField setBackgroundColor:[UIColor clearColor]];
[textField setOpaque:YES];
[textField setAutocorrectionType:UITextAutocorrectionTypeNo];
[textField setAutocapitalizationType:UITextAutocapitalizationTypeNone];