UI changes.
[pithos-ios] / Classes / EditAccountGroupsViewController.m
index 88ace67..0aae99c 100644 (file)
     [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];