阅读 正确使用PresentModalViewController 后,并参考了其他大牛的方法有所心得。要想实现presentViewController 推出半透明窗口并不是那么难。
ChooseLocationController *locationVc = [[ChooseLocationController alloc]init];
[locationVc setModalPresentationStyle:UIModalPresentationOverCurrentContext];//关键代码
......
[self presentViewController:locationVc animated:NO completion:nil];