背景がclearColorに設定されているTestVCというUIViewControllerがあります。
@implementation TestVC
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor clearColor];
}
@end
次の方法で、別のView ControllerからTestVCを提示します。
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentViewController:[[TestVC alloc] init] animated:YES completion:NULL];
しかし、現在のTestVCは白く、画面を覆い隠してしまいます。基礎となるView Controllerを透明にするか、部分的に隠す方法はありますか?
ありがとう