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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -