草庐IT

motherButton

全部标签

ios - 我想移动指定自动布局的 View 的位置。 (ios 6,xcode 4.5)

我想指定中心的坐标。-(Void)viewDidLoad{[superviewDidLoad];self.motherButton.center=CGPointMake(-100,self.motherButton.center.y);}在上面的代码中,motherButton并没有移出屏幕。你怎么走?我想在动画中移动。 最佳答案 -(void)viewDidAppear:(BOOL)animated{[superviewDidAppear:animated];self.motherButton.center=CGPointMake