Как реализовать UIPageViewController с UIScrollView?

Я взялФото скроллер пример от Apple 'с веб-сайта и попытался реализовать свой собственный альбом, скопировав код. ТеперьUIScrollView не видно Как мне сделать так, чтобы это появилось?

Единственное изменение кода, которое я сделал, было в созданииUIPageViewController, В моем случае этосUIViewController это открывает его, а не.AppDelegate

@implementation BasePhotoViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nil bundle:nibBundleOrNil];
    if (self) {
        // kick things off by making the first page

        PhotoViewController *pageZero = [PhotoViewController photoViewControllerForPageIndex:0];
        if (pageZero != nil)
        {
            // assign the first page to the pageViewController (our rootViewController)
            //UIPageViewController *pageViewController = (UIPageViewController *)    [[UIApplication sharedApplication] keyWindow].rootViewController;
            UIPageViewController *pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:0 navigationOrientation:0 options:nil];
            //UIPageViewController *pageViewController = (UIPageViewController *)self.parentViewController;
            pageViewController.dataSource = self;

            [pageViewController setViewControllers:@[pageZero]
                                     direction:UIPageViewControllerNavigationDirectionForward
                                      animated:NO
                                    completion:NULL];
        }
    }
    return self;
}

Ответы на вопрос(1)

Ваш ответ на вопрос