IOS常见API

[self presentModalViewController:editUI animated:YES];     //跳转界面

editUI = [[EditUI alloc] initWithNibName:@"EditUI" bundle:nil];  //初始化UIViewController

if([self parentViewController])
    {
        [[self parentViewController] dismissModalViewControllerAnimated:YES];
    }
    else
    {
        [[self presentingViewController] dismissModalViewControllerAnimated:YES];
    }

//退回前一个View

猜你喜欢

转载自asdf314159265.iteye.com/blog/1952976