标签: 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);
但是当我旋转设备时,子视图不会再次出现在中心位置。旋转时如何“自动居中”子视图?