I just followed the original solution and applied some default and custom settings in Interface Builder, and seems to me it is working.
- You can check it here: https://github.com/codedad/SO_IOS_viewcl_on_viewcl
Important section (quite similar to the question's code):
- (IBAction)click:(id)sender {
NSLog(@"click");
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"TopOverVc"];
vc.view.backgroundColor = [UIColor clearColor];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentViewController:vc animated:NO completion:nil];
}
Hope I did not misunderstand sthing in your question ;) Happy coding!