         
         let indexPath = NSIndexPath(forItem: delegate.selectedIndex, inSection: 0)
         collectionView!.scrollToItemAtIndexPath(indexPath, atScrollPosition: .CenteredHorizontally, animated: false)
-
     }
-    
+        
     // MARK: - Private methods
     
     private func scrollViewStopped() {

        }
    }
    
    override func scrollViewDidEndDecelerating(scrollView: UIScrollView) {        
        scrollViewStopped();
    }
    

        fatalError("init(coder:) has not been implemented")
    }
    
    
    // MARK: - View Lifecycle
    
    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        
        view.frame = view.superview!.bounds
        
