yourButton.frame = CGRectMake(self.view.frame.size.width/2 - yourButton.frame.size.width/2,self.view.frame.size.height/2 - yourButton.frame.size.height/2,yourButton.frame.size.width,yourButton.frame.size.height);