I have a delegate which basically adds a view controller's view to this view's as a subview. The issue is that the background of the subview is always gray. I've set it so that the color is clear. Any idea why? I want it to be see through.
- (void)fullStryViewController:(FullStryViewController *)fullStoryVC addFullScreenSubView:(UIViewController *) viewController
{
[self.view addSubview:viewController.view];
}
May be you can try this way ?,
- (void)fullStryViewController:(FullStryViewController *)fullStoryVC addFullScreenSubView:(UIViewController *) viewController
{
viewController.view.backgroundColor = [UIColor clearColor];
[self.view addSubview:viewController.view];
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.