Trying to achieve the appearance of a Grouped TableView with one element in each section and with a small number of fields (gives me a rounded image with the ability for the user to choose the color that they want),
It works for me. HOWEVER, when the user changes orientation, I had to use the didRotateFromInterfaceOrientation method (since willRotateToInterfaceOrientation does not work), BUT the effect is that you see that the fields change quickly in this fraction of a second after displaying the tableView.
QUESTION - Any way to correct the situation so that this transition is not visible?
- (void) removeMargins { CGFloat marginAdjustment = 7.0; CGRect f = CGRectMake(-marginAdjustment, 0, self.tableView.frame.size.width + (2 * marginAdjustment), self.tableView.frame.size.height); self.tableView.frame = f; } - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [self removeMargins]; } - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; [self removeMargins]; }
Greg
source share