ios - Resize Slider Image in ICarousel -
i using icarousel image slider. image width more 1300px how can fit single screen it's overlap on next image index.
using carouselitemwidth
delegate may help,
use:
- (cgfloat)carouselitemwidth:(icarousel *)carousel;
like,
- (cgfloat)carouselitemwidth:(icarousel *)carousel{ uiinterfaceorientation interfaceorientation = [[uiapplication sharedapplication] statusbarorientation]; if (uiinterfaceorientationisportrait(interfaceorientation)) { //handle , return per image return 200; //return value equal or higher carouselitemview width } else { //handle , return per image return 300; //return value equal or higher carouselitemview width } }
also can use below property centered item view in carousel. index of view matches currentitemindex.
@property (nonatomic, strong, readonly) uiview *currentitemview;
Comments
Post a Comment