iphone - how to show iCarousel center view only highlighted other nearest view show some dark -


i displaying images using icarousel, , display type carousel.type = icarouseltyperotary; working fine need changes in displaying ui. want display center view show original alpha , color highlighted other nearest 2 view show dark. did google not fined solution. please give me suggestion or guide how achieve this.

i explain using screenshot bellow:-

after impliment icarousel displaying images this:-

enter image description here

i want display nearest 2 images view of center imageview bellow:-

enter image description here

please me on thank .

there various ways achieve this. carousel:itemalphaforoffset: answers you've received approach, they'll involve doing bit of maths.

if have recent version of icarousel, can implement more using options api. add method uiviewcontroller (if using example project may in there , you'll need modify it):

- (cgfloat)carousel:(icarousel *)carousel       valueforoption:(icarouseloption)option          withdefault:(cgfloat)value {      switch (option) {         case icarouseloptionfademin:             return 0;         case icarouseloptionfademax:             return 0;         case icarouseloptionfaderange:             return 2;         default:             return value;     } } 

you can replace 2 bigger or smaller number increase or decrease opacity of side views. example, value of 3 make them less transparent. value of 1.5 make them more transparent. (a value of 1 make them invisible).


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -