I retrieve a cell using dequeueReusableCellWithIdentifier and am logging the width of it.
When the view is first loaded, the width is the same in both orientations. Why is this? If the orientation changes while the view is active, the width outputs correctly.
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
The actual cell’s frame doesn’t get set until after
tableView:cellForRowAtIndexPath:If you want to get the width after rotation, then you can use
didRotateFromInterfaceOrientation:If you wan to get the width right before it displays a cell, you can use
tableView:willDisplayCell:forRowAtIndexPath:Note that this last one is probably the one you’re looking for.