I have a custom UITableViewCell which contains several UIButtons. Each button\'s frame position is relative to the cell width. I set autoresizingMask=UIViewAutoresizingFlexi
The ticked answer works like a charm in old iOS versions. For iOS 6.0 I used the next code:
static NSString *Identifier;
if (self.interfaceOrientation==UIInterfaceOrientationPortrait) {
Identifier=@"aCell_portrait";
}
else {
Identifier=@"DocumentOptionIdentifier_Landscape";
}
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:Identifier];