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

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -