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:-

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

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
Post a Comment