在我们普通的只是在下一个控制器里设置界面的透明度是不起作用的,所以我们要进行下面的操作,才能使控制器界面完美的实现透明效果。
第一种写法
NextViewController *next = [[NextViewController alloc] init];
next.providesPresentationContextTransitionStyle = YES;
next.definesPresentationContext = YES;
[next setModalPresentationStyle:UIModalPresentationOverCurrentContext]