Skip to content

Commit

Permalink
添加文字轮播方法;添加解决CycleScrollview会在viewWillAppear时图片卡在中间位置的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
gsdios committed May 27, 2016
1 parent c234e3d commit 2ad30e4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ typedef enum {
@property (nonatomic, copy) void (^itemDidScrollOperationBlock)(NSInteger currentIndex);

/** 解决viewWillAppear时出现时轮播图卡在一半的问题,在控制器viewWillAppear时调用此方法 */
- (void)adjustWhenControllerWillAppera;
- (void)adjustWhenControllerViewWillAppera;

////////////////////// 自定义样式接口 //////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ - (void)dealloc {

#pragma mark - public actions

- (void)adjustWhenControllerWillAppera
- (void)adjustWhenControllerViewWillAppera
{
long targetIndex = [self currentIndex];
if (targetIndex < _totalItemsCount) {
Expand Down
2 changes: 1 addition & 1 deletion SDCycleScrollView/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ - (void)viewWillAppear:(BOOL)animated
[super viewWillAppear:animated];

// 如果你发现你的CycleScrollview会在viewWillAppear时图片卡在中间位置,你可以调用此方法调整图片位置
// [你的CycleScrollview adjustWhenControllerWillAppera];
// [你的CycleScrollview adjustWhenControllerViewWillAppera];
}


Expand Down

0 comments on commit 2ad30e4

Please sign in to comment.