From 8ebbb0efac15c59886416f4ee347e67dba07b0d7 Mon Sep 17 00:00:00 2001 From: WenchaoD Date: Tue, 25 Sep 2018 13:15:26 +0800 Subject: [PATCH] Fix some missing steps during renaming. --- .../FSPagerViewExample/BasicExampleViewController.swift | 4 ++-- .../FSPagerViewExample-Objc/BasicExampleViewController.m | 2 +- Sources/FSPagerView.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FSPageViewExample-Swift/FSPagerViewExample/BasicExampleViewController.swift b/FSPageViewExample-Swift/FSPagerViewExample/BasicExampleViewController.swift index e1edb09..57c806b 100644 --- a/FSPageViewExample-Swift/FSPagerViewExample/BasicExampleViewController.swift +++ b/FSPageViewExample-Swift/FSPagerViewExample/BasicExampleViewController.swift @@ -10,7 +10,7 @@ import UIKit class BasicExampleViewController: UIViewController,UITableViewDataSource,UITableViewDelegate,FSPagerViewDataSource,FSPagerViewDelegate { - fileprivate let sectionTitles = ["Configurations", "Paging Distance", "Item Size", "Interitem Spacing", "Number Of Items"] + fileprivate let sectionTitles = ["Configurations", "Decelaration Distance", "Item Size", "Interitem Spacing", "Number Of Items"] fileprivate let configurationTitles = ["Automatic sliding","Infinite"] fileprivate let decelerationDistanceOptions = ["Automatic", "1", "2"] fileprivate let imageNames = ["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg","6.jpg","7.jpg"] @@ -66,7 +66,7 @@ class BasicExampleViewController: UIViewController,UITableViewDataSource,UITable } return cell case 1: - // Paging Distance + // Decelaration Distance let cell = tableView.dequeueReusableCell(withIdentifier: "cell")! cell.textLabel?.text = self.decelerationDistanceOptions[indexPath.row] switch indexPath.row { diff --git a/FSPagerViewExample-Objc/FSPagerViewExample-Objc/BasicExampleViewController.m b/FSPagerViewExample-Objc/FSPagerViewExample-Objc/BasicExampleViewController.m index 34bf617..fe05e72 100644 --- a/FSPagerViewExample-Objc/FSPagerViewExample-Objc/BasicExampleViewController.m +++ b/FSPagerViewExample-Objc/FSPagerViewExample-Objc/BasicExampleViewController.m @@ -89,7 +89,7 @@ return cell; } case 1: { - // Paging Distance + // Decelaration Distance UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"]; cell.textLabel.text = self.decelerationDistanceOptions[indexPath.row]; switch (indexPath.row) { diff --git a/Sources/FSPagerView.swift b/Sources/FSPagerView.swift index 97117bf..f3370e6 100644 --- a/Sources/FSPagerView.swift +++ b/Sources/FSPagerView.swift @@ -129,7 +129,7 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega } } - /// An unsigned integer value that determines the paging distance of the pager view, which indicates the number of passing items during the deceleration. When the value of this property is FSPagerView.automaticDistance, the actual 'distance' is automatically calculated according to the scrolling speed of the pager view. Default is 1. + /// An unsigned integer value that determines the deceleration distance of the pager view, which indicates the number of passing items during the deceleration. When the value of this property is FSPagerView.automaticDistance, the actual 'distance' is automatically calculated according to the scrolling speed of the pager view. Default is 1. @IBInspectable open var decelerationDistance: UInt = 1