ipad - 设备旋转时的中心子视图

时间:2013-06-29 12:09:43

标签: ipad subview landscape-portrait

我在iPad的xcode中有master-detail aplication,我有一个子视图,这个代码位于屏幕的中心:

box.view.center = CGPointMake(self.view.bounds.size.width / 2, self.view.bounds.size.height / 2);

但是当我旋转设备时,子视图不会再次出现在中心位置。旋转时如何“自动居中”子视图?

This is that problem...

0 个答案:

没有答案