     //当前图片索引
     var currentIndex: Int = 0
     //记录当前Cell的索引
-    var cellIndex: Int = 0
+//    var cellIndex: Int = 0
     var cycleTimer :NSTimer?
     
     public var CycleImageList = [UIImage]()

        runloop.addTimer(timer, forMode: NSRunLoopCommonModes)
    }
    func nextImage() {
        let indexPath = NSIndexPath(forItem: ++cellIndex, inSection: 0)
        collectionView!.scrollToItemAtIndexPath(indexPath, atScrollPosition: UICollectionViewScrollPosition.CenteredHorizontally, animated: true)
    }
    

        let cell = collectionView.dequeueReusableCellWithReuseIdentifier(PictureCycleCellID, forIndexPath: indexPath) as! PictureCycleCell
        
        //Config Cell...
//        cellIndex = indexPath.item
        let index = (indexPath.item - 1 + CycleImageList.count + currentIndex) % CycleImageList.count
        cell.image = CycleImageList[index]
        
