     override func viewDidLoad() {
         super.viewDidLoad()
         // Do any additional setup after loading the view, typically from a nib.
-        
-        self.delegate = self
         self.dataSource = self
         
         let vc = UIViewController()

        postViewController.post = post
        return postViewController
    }

}



import UIKit

class MainPageViewController: UIPageViewController, PFLogInViewControllerDelegate, PFSignUpViewControllerDelegate {
    
    var posts: [Post]!
    var index: Int!
