     }()
     
     /// Delegate
-    open weak var delegate: DTPagerControllerDelegate?
+    @objc open weak var delegate: DTPagerControllerDelegate?
     
     /// Preferred height of segmented control bar.
     /// Default value is 44.

    
    /// Page scroll view
    /// This should not be exposed. Changing behavior of pageScrollView will destroy functionality of DTPagerController
    lazy var pageScrollView : UIScrollView = {
        let pageScrollView = UIScrollView()
        pageScrollView.autoresizingMask = [UIViewAutoresizing.flexibleWidth, UIViewAutoresizing.flexibleHeight]
        pageScrollView.showsHorizontalScrollIndicator = false

    
    deinit {
        unobserveTitleFrom(viewControllers: viewControllers)
        unobserveScrollViewDelegate(pageScrollView)
    }
    
    override open func loadView() {
