我正在将一个UIViewControllersubview添加到另一个UIViewController。效果很好。但是我很难尝试将subview居中放置在父View的中间。我仔细阅读,发现有2行代码对其他人有用,但对我不起作用。谁能指出我的问题??它们是:popupController.view.center=[self.viewconvertPoint:self.view.centerfromView:self.view.superview];和popupController.view.center=CGPointMake(self.view.bounds.size.width/2,