diff --git a/SDCycleScrollView.xcodeproj/project.xcworkspace/xcuserdata/gsd.xcuserdatad/UserInterfaceState.xcuserstate b/SDCycleScrollView.xcodeproj/project.xcworkspace/xcuserdata/gsd.xcuserdatad/UserInterfaceState.xcuserstate index 94b769b9..6e3e682d 100644 Binary files a/SDCycleScrollView.xcodeproj/project.xcworkspace/xcuserdata/gsd.xcuserdatad/UserInterfaceState.xcuserstate and b/SDCycleScrollView.xcodeproj/project.xcworkspace/xcuserdata/gsd.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h b/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h index 1a5a20e7..35b33f85 100644 --- a/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h +++ b/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h @@ -114,7 +114,7 @@ typedef enum { @property (nonatomic, copy) void (^itemDidScrollOperationBlock)(NSInteger currentIndex); /** 解决viewWillAppear时出现时轮播图卡在一半的问题,在控制器viewWillAppear时调用此方法 */ -- (void)adjustWhenControllerWillAppera; +- (void)adjustWhenControllerViewWillAppera; ////////////////////// 自定义样式接口 ////////////////////// diff --git a/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m b/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m index 33f90247..c85580df 100644 --- a/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m +++ b/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m @@ -519,7 +519,7 @@ - (void)dealloc { #pragma mark - public actions -- (void)adjustWhenControllerWillAppera +- (void)adjustWhenControllerViewWillAppera { long targetIndex = [self currentIndex]; if (targetIndex < _totalItemsCount) { diff --git a/SDCycleScrollView/ViewController.m b/SDCycleScrollView/ViewController.m index 50a0f76d..cf842cbd 100644 --- a/SDCycleScrollView/ViewController.m +++ b/SDCycleScrollView/ViewController.m @@ -148,7 +148,7 @@ - (void)viewWillAppear:(BOOL)animated [super viewWillAppear:animated]; // 如果你发现你的CycleScrollview会在viewWillAppear时图片卡在中间位置,你可以调用此方法调整图片位置 -// [你的CycleScrollview adjustWhenControllerWillAppera]; +// [你的CycleScrollview adjustWhenControllerViewWillAppera]; }