0

別のを押したときに表示される with がありUIViewControllerます。画面の下部から正しくスライドしますが、高さを画面の高さの半分にして、画面の下部にとどめたいです。TableViewButtonView

どうすればこれを入手できますか?

これが私のコードです:

CupsViewController

Buttonを押して を表示したときのコードTableViewです。

//DirectionViewController is the one that contains TableView
DirectionViewController *directionController = [self.storyboard instantiateViewControllerWithIdentifier:@"directionsView"];        

// Position the options at bottom of screen
CGRect optionsFrame = directionController.view.frame;
optionsFrame.origin.x = 0;
optionsFrame.size.width = 320;
optionsFrame.origin.y = 423;

// For the animation, move the view up by its own height.
optionsFrame.origin.y += optionsFrame.size.height;

directionController.view.frame = optionsFrame;

[UIView beginAnimations:nil context:nil];

optionsFrame.origin.y -= optionsFrame.size.height;
directionController.view.frame = optionsFrame;

[UIView commitAnimations];

[self.navigationController pushViewController:directionController animated:YES];
4

1 に答える 1