I have a UITableView
and I set its contentMode
to bottom. I expected when the orientation changes, the bottom part of the UITableView
will stay foot and the top part will change.
Yet this doesn't happen.
I printed the content mode on the willRotate
method and it seems fine.
Any ideas what could bother it?
Actually,
contentMode
forUITableView
does not work that way.If you need the first cell on a bottom, you need to apply
M_PI
rotation affine transform to your tableView and then rotate each cell back onM_PI
.