我需要在iCarousel中实现分页。在此之后,我将iCarouselTypeLinear与iCarousel集成在一起,编写了以下代码:
UIView *bandImageView = [[UIView alloc] initWithFrame:CGRectMake(350, 300, 100, 20)];
bandImageView.backgroundColor = [UIColor redColor];
[self.view addSubview:bandImageView];这段代码在Carousel下面创建了一个红色区域,我想在其中显示分页控件。
在iCarousel中实现分页的下一步是什么。
Zeeshan Jan
发布于 2013-01-21 08:43:41
试试这个,看看它是否能帮你http://snipplr.com/view/60971/
发布于 2014-02-13 06:08:32
试试这个..。为我工作过。
carousel.decelerationRate = 0.0f;发布于 2013-01-21 08:50:32
首先,将您的caroselView类型设置为线性。
[carouselView setType:iCarouselTypeLinear];其次,在iCarosel.m文件中,您可以看到代码的顶部。设置MAX_VISIBLE_ITEMS 1,它将显示1视图,然后您可以滚动它。我看起来像传呼。
#ifdef ICAROUSEL_MACOS
#define MAX_VISIBLE_ITEMS 1
#else
#define MAX_VISIBLE_ITEMS 1
#endifhttps://stackoverflow.com/questions/14434424
复制相似问题