---
title: "A Gray/White/Black Page Is Rendered"
canonical_url: "https://www.nutrient.io/guides/ios/rendering-issues/a-graywhiteblack-page-is-rendered/"
md_url: "https://www.nutrient.io/guides/ios/rendering-issues/a-graywhiteblack-page-is-rendered.md"
last_updated: "2026-05-15T19:10:05.040Z"
description: "Solutions for common issues and errors in Nutrient iOS SDK with debugging tips and workarounds."
---

There may be times when a gray, white, or black page is displayed on a PDF. While there can be a lot of reasons why you’re experiencing this issue, the most common is improper use of view controllers.

For information on this topic, read up on Apple’s [Implementing a Container View Controller](https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/ImplementingaContainerViewController.html) guide.

Simply put, adding the [`PDFViewController`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfviewcontroller)’s view onto another view alone won’t work; you need to connect the controllers as well:

### SWIFT

```swift

func displayContentController(_ content: UIViewController) {
    addChild(content)
    content.view.frame = frameForContentController()
    view.addSubview(currentClientView)
    content.didMove(toParentViewController: self)
}

```

### OBJECTIVE-C

```objc

- (void)displayContentController:(UIViewController*) content {
   [self addChildViewController:content];
   content.view.frame = [self frameForContentController];
   [self.view addSubview:self.currentClientView];
   [content didMoveToParentViewController:self];
}

```

For more information, refer to the objc.io article on [View Controller Containment](http://www.objc.io/issue-1/containment-view-controller.html).
---

## Related pages

- [In Adobe Acrobat Hyperlinks Are Clickable But In Pspdfkit Some Or All Of Them Are Not Marked As Touchable](/guides/ios/rendering-issues/in-adobe-acrobat-hyperlinks-are-clickable-but-in-pspdfkit-some-or-all-of-them-are-not-marked-as-touchable.md)
- [Changing The Font Size Or Color Of Page Text](/guides/ios/customizing-pdf-pages/changing-the-font-size-or-color-of-page-text.md)
- [Understanding PDF rendering complexities](/guides/ios/troubleshooting/complexities-of-rendering-pdfs.md)
- [Fixing inconsistent font issues in PDFs](/guides/ios/rendering-issues/inconsistent-fonts.md)
- [Understanding XFA forms and their impact](/guides/ios/rendering-issues/pspdfkit-doesnt-show-the-pdf-form.md)
- [Inconsistent Labels](/guides/ios/rendering-issues/inconsistent-labels.md)

