iOSビュージャンプ
1980 ワード
//
- ( void)present:( id )sender {
NSLog ( @"the button,is clicked …" );
// UIViewController
ModalViewController *modalViewController = [[ ModalViewController alloc ]init ];
//
modalViewController. modalTransitionStyle =UIModalTransitionStyleCoverVertical ;
//
[ self presentViewController :modalViewController animated : YES
completion :^{ NSLog ( @"call back" );}];
}
//
- ( void )finishPage:sender
{
NSLog ( @"back button click …" );
[ self dismissViewControllerAnimated : YES
completion :^{ NSLog ( @"DISMISS" );}];
}